Files
management-scripts/Fix-HighCPUUsage.ps1
T

6 lines
175 B
PowerShell
Raw Normal View History

2022-04-11 13:21:51 -04:00
# Kill the reg.exe process if it has 3 or more instances running
$RegProcesses = Get-Process -Name 'reg'
If ( $RegProcesses.Count -ge 3 ) {
$RegProcesses | Stop-Process
}