November 2018
Intermediate to advanced
566 pages
17h 15m
English
When you start a PowerShell background or remote job, the job starts in two modes: background and remote. However, the results do not appear immediately. Instead, the command returns an object that represents the background or remote job.
Let's look at a few simple examples to understand how PowerShell Jobs work:
PS> start-job -ScriptBlock { Get-Process}
PS> $session=New-PSSession -HostName hdf01 -UserName ssh-test$job=Invoke-Command -Session $session -ScriptBlock {Get-Process | Select-Object -First 5} -AsJob
PS> Get-Job ...
Read now
Unlock full access