Collapse the table of content
Expand the table of content
Expand Minimize
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Job Class

Serves as a base class for objects that represents a background job. A background job runs a command that can contain a command or expression. The job is run asynchronously within its own runspace. This class is introduced in Windows PowerShell 2.0.

Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As Job

public ref class Job abstract : IDisposable
public abstract class Job implements IDisposable
public abstract class Job implements IDisposable

The command run by the job can contain cmdlets, functions, scripts, or any other command-based tasks. It is designed to run commands that take an extended amount of time to complete, but it can run any command in the background.

Jobs are executed within their own runspaces, and those runspaces can exist on the local computer or any number of remote computers. See the ChildJobs property for more information about jobs that run on multiple runspaces.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

© 2015 Microsoft