Skip to content

Instantly share code, notes, and snippets.

@Saulis
Created April 15, 2014 11:46
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 Saulis/10725688 to your computer and use it in GitHub Desktop.
Save Saulis/10725688 to your computer and use it in GitHub Desktop.
get-process iexplore | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process IEDriverServer | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process chrome | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process chromedriver | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
get-process firefox | ? { ([DateTime]::Now - $_.StartTime).TotalSeconds -gt 300 } | stop-process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment