
Uninstalling apps remotely and in bulk
Many times we find ourselves with the need to uninstall certain software that we have installed on our workstations, via WMI (Windows Management Instrumentation) We can uninstall the software we need on the computers we need, a platform that is not widely used by 'us'’ Administrators. Thanks to the command line parameters we can use variables and/or files with lists of equipment to automate these tasks,
With the WMI platform we will be able to manage our data and tasks of the operating system, in this website We have a summary of the parameters we could use, Well, In this document we will list the applications that a remote machine has, We will uninstall a software manually (WinZip) and then we will uninstall a software on a few machines using variables. We enter the command line (with administrator privileges) Running 'WMIC', We will get the software listing by running:
‘/Node:NOMBRE_PC product get name,version,Vendor‘
This would be the list available on a remote computer,
If we want to uninstall a program on that computer:
‘/Node NOMBRE_PC product where name”WinZip 15.0″ call uninstall /nointeractive‘
We can generate a text file called 'equipos.txt’ where we will enter the name of all the machines from which we want to uninstall software in an orderly manner; being able to use the % To enter incomplete names when uninstalling software, in this case we will uninstall all the WinZip that these computers have (with any version), Running:
‘/Node ARCHIVO_EQUIPOS.TXT product where “name like ‘%WinZip%'” call uninstall /nointeractive‘.