Created
February 27, 2015 20:19
-
-
Save tjbenator/1fc3225f20fc3d41f976 to your computer and use it in GitHub Desktop.
Stop duplicate processes
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
PowerShell.exe -ExecutionPolicy Bypass -Command "& { get-process PROCESSNAME -ErrorAction SilentlyContinue | Sort-Object StartTime -descending | select Id, StartTime -skip 1 | stop-process }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment