I accidentally ran the built in script on a scope that included all machines we monitor, as a result we are getting hundreds of Tickets to opened with each status.
I am new to this, can anyone provide a script to reverse the build in script that looks like this, basically I dont want to monitor any services
This is the script that ran, which i would like to "unrun" as my service desk is going to explode with tickets
$services = Get-wmiobject win32_service -Filter "StartMode = 'Auto'" | select Name;
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\Services" -Name "Count" -Value $services.Count.ToString();
$count = 0;
foreach ($service in $services) {
Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\Services" -Name ("Service" + $count++) -Value $service.Name;
}
exit 0;