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:-
1. Open a command prompt.
2. Input WMIC and press Return. You will see a prompt that looks like this:
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.