Jump to content

Password protect uninstallation of agent


JZarzosa

Recommended Posts

  • 3 months later...
  • 5 months later...
  • 3 weeks later...
  • Staff

Hi,

In a meantime, you can remove the shortcut from the desktop and hide the Pulseway from 'Add and remove features'.

Please try the following script:

#Hide _Pulseway_From-Add_and _Remove_programms_and_delete_shortcut

$result = gwmi win32_product -filter "Name LIKE 'Pulseway'" | select IdentifyingNumber;
[string] $a = $result.identifyingNumber;
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$a" -Name "SystemComponent" -Value 1 -Type DWord
Remove-Item 'C:\Users\*\Desktop\Pulseway Manager.lnk'

 

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