How to uninstall an application from command line?
by Ramya[ Edit ] 2009-06-22 17:06:51
Uninstall an Application from the Command Line
WMIC - Windows Management Instrumentation Command.
1. Open a command prompt.
2. Type WMIC. You will see a prompt that looks like,
wmic:rootcli>
3. At the new prompt, execute the following command:
wmic:rootcli>product get name
This will generate a list of installed applications.
for eg,
Update Manager
Status
VBA
WebFldrs XP
Adobe Flash Player 9 ActiveX
Internet Explorer Developer Toolbar
ScannerCopy
4. At the prompt, execute the following command:
wmic:rootcli>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 want to uninstall Adobe Reader 9, my command would look like this:
wmic:rootcli>product where name="Adobe Reader 9" call uninstall
5. When prompted, type "y" to confirm that you wish to uninstall the application and press Return.
The application will be uninstalled.