Jobs Powershell

De Linuxmemo.

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