Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

Periodically Check PowerShell Job Status

$
0
0

My PowerShell profile starts a load of PowerShell jobs when I’m running as Administrator…

Sometimes I need to know when those jobs have finished.

Here’s a lovely little infinity loop giving me just that information.

 


 while ($true) {Write-Output " "; start-sleep 10; get-job; write-output " "}

 
Here’s what it comes back with…
 
capture206
 


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>