Last active
June 3, 2017 23:48
-
-
Save briangordon/4b8aa7fb2f4ad6df85d938ac976a4168 to your computer and use it in GitHub Desktop.
Short PowerShell snippet I wrote for repeatedly dumping all running processes less than a minute old to a file
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
while($true) { | |
Get-Process | ? {$_.StartTime -gt (Get-Date).AddMinutes(-1)} | Select-Object ProcessName,Description,Path >> out.txt | |
sleep 0.01 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment