See [this Microsoft article](https://learn.microsoft.com/en-us/powershell/scripting/samples/managing-processes-with-process-cmdlets?view=powershell-7.3) ```powershell Get-Process Get-Process -name vlc Get-Process -name vlc | ForEach { taskkill /f /pid $_.Id } Get-Process -Id 99 Get-Process -Name ex* Get-Process -Name ex*,vl* Get-Process -ComputerName othermachinename Stop-Process -Name Flibble Stop-Process -Name t*,e* -Confirm Get-Process | Where-Object -FilterScript { $_.Responding -eq $false } | Stop-Process Get-Process -Name BadApp | Where-Object -FilterScript { $_.SessionId -neq 0 } | Stop-Process ``` ```powershell Get-Process Stop-Process Start-Process Wait-Process Debug-Process Invoke-Command ``` ## Services ```powershell (Get-Service sshd).StartType Get-Service -Name sshd | ForEach { $_.StartType } Get-Service -Name sshd | Format-List -Property StartType Set-Service -Name sshd -StartupType Automatic Get-Service sshd | Select-Object * ``` note the discrepancy between `StartType` for the property name, and `-StartupType` for the argument to `Set-Service`.