Skip navigation

Q. How can I use the command line to uninstall an application?

A. You can use the Windows Instrumentation command-line interface (WMIC) to uninstall an application if you know the name of the application. (To learn how to use the command line to obtain a list of all the applications installed on a computer, see the July 14, 2008, FAQ "How can I use the command line to receive a list of all the applications installed on my computer?"). The uninstall command is

For example, to remove the Microsoft Forefront Client Security State Assessment Service software from my computer, I used the following code (which is followed by the output from my computer):

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish