6 lines
175 B
PowerShell
6 lines
175 B
PowerShell
# 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
|
|
}
|