Jump to content

Can't uninstall or reinstall


beli3ver
 Share

Recommended Posts

Hello,

I tried to remove the agent, with this:

 Get-WmiObject win32_product -filter "Name LIKE 'Pulseway'" | Select-Object IdentifyingNumber;

But it is empty. Try to reinstall the agent, but I get the error "Service already exist."

In add/remove software is Pulseway agent, how can I remove it?

Link to comment
Share on other sites

On 3/24/2022 at 3:57 PM, beli3ver said:

Hello,

I tried to remove the agent, with this:

 Get-WmiObject win32_product -filter "Name LIKE 'Pulseway'" | Select-Object IdentifyingNumber;

But it is empty. Try to reinstall the agent, but I get the error "Service already exist."

In add/remove software is Pulseway agent, how can I remove it?

First off, you should never call Win32_Product. It's slow for starters, but it also triggers Windows to perform a Windows Installer reconfiguration on EVERY single msi app installed on the system.  This is terrible and could cause apps to do a repair if it thinks it found an issue. The impact and possible damage that could be caused by running that command is not worth the hassle.  

I highly recommend instead you run this:

Get-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object {$_.DisplayName -eq "Pulseway"}

You can grab the UninstallString and perform an uninstall that way.  LMK if you need further assistance scripting this. 

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
 Share

×
×
  • Create New...