Invoke-Command in a background job

前端 未结 4 1350
庸人自扰
庸人自扰 2021-01-20 14:58

I have a powershell 2.0 script which should run a command on several servers and process the output. I want to run the command and the processing for each server in a backgr

4条回答
  •  一整个雨季
    2021-01-20 15:39

    Looks like you should do it the other way:

    http://technet.microsoft.com/en-us/library/hh849698.aspx

    To run a background job on a remote computer, use the AsJob parameter that is available on many cmdlets, or use the Invoke-Command cmdlet to run a Start-Job command on the remote computer. For more information, see about_Remote_Jobs.

提交回复
热议问题