fusionpax.blogg.se

Wmic uninstall gpo
Wmic uninstall gpo











wmic uninstall gpo

This only works with MSI installed programs, not EXEs. Copy and pasted this into our task sequence step in SCCM/MECM, and good to go! If you want to use for your own purposes, just replace 'TeamViewer Host" in the script with the name of the program you want to get rid of. 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: WMIC product get name. I ran the above with admin creds on a local pc with ‘TeamViewer 6’ installed. Example:Using WMIC to uninstall a software product by exact name.

wmic uninstall gpo

So, I thought to use: wmic product where 'name like TeamViewer' call uninstall. No need to install the NuGet module on systems. As there are multiple ways to remove each version, I’d like a ‘catch all’ using a common variable and WMI commands.

wmic uninstall gpo

After some excruciating trial and error, we found the below script that did the trick! Simple and elegant and quick.













Wmic uninstall gpo