Jobs Powershell

De Linuxmemo.

(Différences entre les versions)
Linuxmemo (discuter | contributions)
(Page créée avec « Catégorie:PowerShell Start-Job -Name <nomdujob> -Scriptblock { <commande/script> } Invoke-Command -Computername <server> { <commande/script> } -ASjob Invoke-Command -... »)
Modification suivante →

Version du 21 février 2017 à 14:28

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