Skip to content

Instantly share code, notes, and snippets.

@josy1024
Last active January 27, 2016 15:49
Show Gist options
  • Save josy1024/d560fbcc4d6123988dae to your computer and use it in GitHub Desktop.
Save josy1024/d560fbcc4d6123988dae to your computer and use it in GitHub Desktop.
remote prozess explorer tasklist
pc=computername
:: prozesse mit mehr als einer minute cpu zeit
:: /v zeigt auch die cpuzeit an!
tasklist /FI "CPUTIME gt 00:01:00" /v /S %pc%
:: prozesse mit mehr als 30 minuten cpu zeit
tasklist /FI "CPUTIME gt 00:30:00" /v /S %pc%
:: prozesse mit mehr als 100mb ram
tasklist /FI "MEMUSAGE ge 100000" /v /S %pc%
:: remote kill process
taskkill /S %PC% /IM prozessname.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment