Great tip for us SQL Server DBAs – Uninstall Programs from Command Line
Eric Russo | | May 28, 2010

It has happened to most SQL Server DBAs and Windows Administrators before: We go to uninstall a program, on Windows Server, and when we open “Add/Remove Programs” it just sits there loading forever, while you are waiting to try to move on to the next thing.
One great way to get around this problem and be able to get back to your day job is to just go command line with the Windows Instrumentation command-line interface (WMIC). It’s much faster than using the dreaded “Add/Remove” programs and lets us get some bragging rights when we talk to our UNIX/LINUX friends.
Below is some information on how to use WMIC.
– Open the command prompt.
– Input WMIC and press Enter. You should see something like wmic:rootcli>
– Type in the following command and press enter: product get name
– To uninstall a program type: product where name=”Your program name” call uninstall
– When you are prompted type y to confirm the uninstall and press Enter
That’s it! Pretty simple.
Subscribe to Our Blog
Never miss a post! Stay up to date with the latest database, application and analytics tips and news. Delivered in a handy bi-weekly update straight to your inbox. You can unsubscribe at any time.
Popular Posts
ORA-12154: TNS:could not resolve the connect identifier specified
Most people will encounter this error when their application tries to connect to an Oracle database service, but it can also be raised by one database instance trying to connect to another database service via a database link.
12c Upgrade Bug with SQL Tuning Advisor
Learn the steps to take on your Oracle upgrade 11.2 to 12.1 if you’re having performance problems. Oracle offers a patch and work around to BUG 20540751.
Scripting Out the Logins, Server Role Assignments, and Server Permissions
Imagine over 100 logins on the source server, you need to migrate them to the destination server. Wouldn’t it be awesome if we could automate the process?