- WMIC UNINSTALL RETURN CODE INSTALL
- WMIC UNINSTALL RETURN CODE SOFTWARE
- WMIC UNINSTALL RETURN CODE PROFESSIONAL
Using WMIC to uninstall software on a remote machine by exact name To remove all of these using the same command, you would use the LIKE operator and the % character wildcard, as in this command: For example Adobe Reader versions 7, 8, and 9 could be installed on machines in your organization. It is possible to use the same WMIC command with wildcards to uninstall multiple versions of a software. Using WMIC to uninstall a software product by wildcard name The uninstallation will automatically run silently with no user interaction. Hitting enter will begin the uninstallation process for the desired software. WMIC product where name=" ProductName" call uninstall And modify the following command's ProductName section. Once you have found the name of the software you would like to remove, copy the name exactly as it appears in the output. This command will return a list of all of the software installed on that particular machine.
WMIC UNINSTALL RETURN CODE INSTALL
If this is your first time running WMIC it will take a second to automatically install itself.
Open up a command prompt and type the following line: Using WMIC to uninstall a software product by exact name The commands issues are much more human friendly as you will see in the examples below. Using WMIC there is no more searching the registry, finding GUIDs, and no more confusing MSIEXEC commands. One of the key benefits I have found using WMIC is that the commands are much simpler than the MSIEXEC method mentioned above. WMIC - Take Command-line Control over WMI If you aren't familiar and want to know more this TechNet article will give you a very good primer: WMIC can be helpful in many ways for administrators, however I'm not going to go into heavy explanation of all the features in this article. My new preferred approach utilizes the WMIC command. Recently, I have been using a different technique to uninstall software. This would require multiple MSIEXEC commands to address these software installations with different GUIDs. A software product version 7.1.2 may have a different GUID from that of version 7.1.5. If you are in a situation with multiple administrators, this could be difficult for those who did not write the script to know what program it is supposed to remove.Īnother limitation that I have run into using the GUID uninstall method is that minor version changes of the same software can have different GUIDs.
WMIC UNINSTALL RETURN CODE PROFESSIONAL
Looking at the following GUID for Office 2007 Professional /qn I do have some issues with it however, the first being that the GUID method is not very user friendly. I have used this many times in the past and this method does work to get software uninstalled. Once found, the registry key should have an UninstallString entry that should contain the MSIEXEC command that uses the GUID of the program to uninstall it.
HKEY_LOCAL_MACHINE\Softwar e\Microsof t\Windows\ CurrentVer sion\Unins tallĪnd look around for an entry matching the software you want to uninstall. One answer that I see often recommended is to use the registry uninstall strings, as described here:īasically, you open up RegEdit, navigate to This may work well if you have to uninstall from just a handful of computers, but what about if you are responsible for managing hundreds or thousands of computers? Now every administrator knows about uninstalling software from the Add/Remove Programs (or Programs and Features) tab in Control Panel. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the same question. Recently I have been answering a lot of questions like this in IT forums that I frequent.