Skip to content

Instantly share code, notes, and snippets.

@Sadin
Created May 16, 2019 16:22
Show Gist options
  • Save Sadin/7e772a96e3562d564badb63cd0b15eec to your computer and use it in GitHub Desktop.
Save Sadin/7e772a96e3562d564badb63cd0b15eec to your computer and use it in GitHub Desktop.
# Dentech Kill Switch
# 5-16-19
# Microsoft cant decide on one way to do things, so lets try all three.
# Get|Stop method
Clear-Host
Get-Process dtwin | Stop-process
# Name mthod
Clear-Host
Stop-Process -name dtwin
# PowerShell.kill()
Clear-Host
$dentech_process = Get-Process dtwin
$dentech_process.Kill()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment