Jump to content

Script needed to Reverse - Add Automatically Started Services in Pulseway


Recommended Posts

Posted

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;

 

 

  • Administrators
Posted

Hey @Daryn,

You may run this script to remove all monitored services from your systems:

Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\Services" -Name "Count" -Value '0'

-Paul

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...