Jump to content

Script needed to Reverse - Add Automatically Started Services in Pulseway


Daryn

Recommended Posts

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;

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...