Need Power Shell Script

Manikandan Narayanswamy
Manikandan Narayanswamy used Ask the Experts™
I have an application known as IBM Infosphere Guardium. This application many times gives problem to uninstall it from control panel. Therefore i need a PowerShell script which should remove the registry entries for the app IBM > Guardium_STAP & Guardium > Guardium Installation Manager these 2 paths are recorded from the C:\Program files (x86).

The path is like below

C:\Program Files (x86)\Guardium\Guardium Installation Manager
C:\Program Files (x86)\IBM\GUARDIUM_STAP

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Maybe you can adapt this.

Remove-Item -Path hkcu:\Software\_DeleteMe
Remove-Item -Path 'hkcu:\key with spaces in the name'
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
That is generic, but correct. I recommend to delete in both HKCU (current user config) and HKLM (machine config).
remove-item 'HKCU:\Software\IBM\Guardium_STAP & Guardium\Guardium Installation Manager' -whatif
remove-item 'HKLM:\Software\IBM\Guardium_STAP & Guardium\Guardium Installation Manager' -whatif

Open in new window

This is in "demo" mode because of -whatif, which only shows what would happen. If it would work for you, remove the -whatif.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial