Jump to content
Daryn

Script needed to Reverse - Add Automatically Started Services in Pulseway

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;

 

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...