1) Get name of the application to be uninstalled:
1 |
wmic product get name |
2) Execute command:
1 |
wmic /node:"yourRemotePCNameOrAlias" product where name="yourApplicationName" call uninstall |
If you get a result like
instance of __PARAMETERS
{
ReturnValue = 0;
};
it worked.
Note that this command might not close processes before uninstalling, but files should be removed at least after a reboot of the remote system.
Other example:
wmic product where (name=”mySwTool” and version = “2.3”) call uninstall