Created
January 31, 2019 13:55
-
-
Save stevehjohn/b8ece221c9db767f6180f9838b8a77d1 to your computer and use it in GitHub Desktop.
Useful Poweshell Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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