Jobs Powershell

De Linuxmemo.

Version du 21 février 2017 à 14:28 par Linuxmemo (discuter | contributions)
(diff) ← Version précédente | Voir la version courante (diff) | Version suivante → (diff)
Start-Job -Name <nomdujob> -Scriptblock { <commande/script> }
Invoke-Command -Computername <server> { <commande/script> } -ASjob
Invoke-Command -Computername <server> { Start-Job -scriptblock { <commande/script> } }

Get-Job
Stop-Job –Id <id>
Stop-Job –Job <name>
Stop-Job –State Terminated
Wait-Job –Id <id>
Wait-Job –Job <name> -TimeOut
Remove-Job *
Remove-Job –Name <name>
Remove-Job –ID <id>
Remote-Job –State Terminated
Outils personnels