how to write powershell script to uninstall 3 guids. This is for HP Load runner

I have 3  guids to uninstall for one package hp loadrunner. How do I write script for 3 guids

0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: jamie_kace 1 year ago
Brown Belt

Is there a reason you want to use PowerShell here?  I am a big fan of WMIC commands.  They are simple and can work in a batch file easily.  If you have the GUID it would be a simple command like this replacing the GUID but leaving the brackets :

wmic product where identifyingnumber={guid} call uninstall /nointeractive

But if you want to install all products that have a similar name (like java might have 5 versions of Java 8 on a machine), you could use a command like this to remove all programs that start with "java 8"

wmic product where "name like 'Java 8%%'" call uninstall /nointeractive

Hope that helps!

  • There is no reason to use powershell. I did write it in batch file but was curious how to do in powershell. Just for learning.. Thanks for your response . I will dig into wmic - ldhema 1 year ago
Posted by: ldhema 1 year ago
Yellow Belt

Top Answer

can anyone suggest good tutorial to learn powershell commands and also practice 

  • I can recommend the book: learn powershell in a month of lunches
    Also check the following links:




    (It is version 3 but has a lot of useful information )
    https://channel9.msdn.com/Series/GetStartedPowerShell3 - kaelroyal 1 year ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ