swisscom / PowerSponse

PowerSponse is a PowerShell module focused on targeted containment and remediation during incident response.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using jobs for concurrent execution of commands

Karneades opened this issue · comments

Jobs: Clarify order of execution, sequencial, dependency between commands...

  • Use asjob / start-job / wait-job / Start-Job -Name "..." { sleep 20; get-process }
  • Get-WmiObject ... -asjob
  • $proc = get-job -Name "test" | Wait-Job | Receive-Job