Collections:
Other Resources:
"Invoke-Command -AsJob" - Remote Background Jobs in PowerShell
How to start a background job on a remote computer in Windows PowerShell?
✍: FYIcenter.com
You can use the "Invoke-Command -AsJob" cmdlet to start a background job on
a remote computer.
Actually, the "Invoke-Command -AsJob" cmdlet is creating a local background job that runs the specified command on a remote computer. So "Invoke-Command office-server -AsJob {...}" is similar to "Start-Job {Invoke-Command office-server {...}}".
Here is an example of using the "Invoke-Command -AsJob" cmdlet:
PS C:\fyicenter>Invoke-Command office-server -ScriptBlock {Get-EventLog system} -AsJob
Id Name State HasMoreData Location Command
--- ---- ----- ----- ----------- ---------------
1 Job1 Running True office-server Get-EventLog system
⇒ Introduction of Windows PowerShell ISE
⇐ "Remove-Job" Cmdlet in Windows PowerShell
2016-10-05, ∼5870🔥, 0💬
Popular Posts:
What is the "McClientAnalytics.exe" process on windows 7? Is the "McClientAnalytics.exe" process a v...
What is "Net Driver HPZ12" in my Windows 7 service list? And how is "Net Driver HPZ12" service relat...
What is "Windows Connect Now - Config Registrar" in my Windows 7 service list? And how is "Windows C...
Can I disable Windows service "hpqwmiex.exe - HP ProtectTools security manager" to speedup my comput...
How to setup a HP laptop computer? I want to buy the new HP laptop computer on sale at Best Buy for ...