PSJob Class
Represents a background job that runs a pipeline that can contain a command or expression. The job is run asynchronously without interacting with the console.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage
Syntax
'Declaration
Public MustInherit Class PSJob
Implements IDisposable
public abstract class PSJob : IDisposable
public ref class PSJob abstract : IDisposable
public abstract class PSJob implements IDisposable
public abstract class PSJob implements IDisposable
Remarks
A pipeline executed by the background job can contain cmdlets, functions, scripts, script cmdlets, 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.
Background jobs are executed within any number of runspaces, and those runspaces can exist on the local computer or any number of remote computers. See the ChildJobs property for more information on jobs that run on multiple runspaces.
Inheritance Hierarchy
System.Object
System.Management.Automation.PSJob
System.Management.Automation.PSEventJob
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP