Skip to content

Instantly share code, notes, and snippets.

@stevehjohn
Created January 31, 2019 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevehjohn/b8ece221c9db767f6180f9838b8a77d1 to your computer and use it in GitHub Desktop.
Save stevehjohn/b8ece221c9db767f6180f9838b8a77d1 to your computer and use it in GitHub Desktop.
Useful Poweshell Scripts
function Poll-For-Process {
while ($true) {
$date = Get-Date
Get-Process $args | ForEach-Object { "{0} {1}" -f $date, $_.ProcessName }
Start-Sleep -m 500
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment