Skip to main content

Windows Remote Management

Initiate a Remote PowerShell Session

$Cred = Get-Credential
Enter-PSSession -ComputerName dc01 -Credential $Cred

Kill a Process from a Remote Session

# find the offending process PID
Get-Process

# kill it
taskkill /F /PID <PID>