Need to create a script to uninstall software

Microsoft Windows server 2003 enterprise
July 15, 2010 at 06:38:03
Specs: Windows 2003 Enterprise
Hi All,

I want to create a script to uninstall two or three software from WINDOWS 2003 Enterprise using command line.

Please let me know the commands to create a script.

I tried some steps as mentioned below but these are not working in my environment:-

Steps
1. Open a command prompt.
2. Input WMIC and press Return. You will see a prompt that looks like this:
wmic:root\cli>
3. At the new prompt, execute the following command:
product get name
This will generate a list of installed applications.
4. At the prompt, execute the following command:
product where name="" call uninstall
where application name is the name of the program you wish to uninstall (use the exact name provided by the previously generated list).
For example, if I were wanting to uninstall Adobe Reader 9, my command would look like this:
product where name="Adobe Reader 9" call uninstall
5. When prompted, input y to confirm that you wish to uninstall the application and press Return.


These steps are working XP but not in WINDOWS2003.

Regards,
gjbedi


See More: Need to create a script to uninstall software

Report •

#1
July 15, 2010 at 07:26:52
While using the above mentioned steps in WINDOWS 2003 I am getting the following error.

C:\Documents and Settings\gbedi>WMIC
wmic:root\cli>Product get name
Node - STADB0063D
ERROR:
Code = 0x80041010
Description = Invalid class
Facility = WMI

Please help


Report •

#2
July 15, 2010 at 12:12:10

Report •

#3
July 15, 2010 at 12:34:58
What Google man.....

Report •
Related Solutions


Ask Question