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, ∼5966🔥, 0💬
Popular Posts:
How set up "live tv" in Windows Media Center on Windows 7? If you have TV tuner installed on your co...
What is helpctr.exe - Microsoft Help and Support Center? helpctr.exe is the executable binary file o...
What is helpctr.exe - Microsoft Help and Support Center? helpctr.exe is the executable binary file o...
How to remove realsched.exe from the startup application list to gain performance and reduce securit...
Can I remove startup application "Directcd.exe - Roxio DirectCD Application" to speedup my computer ...