Wednesday, November 20, 2019

WMIC Uninstall AutoCAD silent .bat batch files. USE WITH CAUTION

USE WITH CAUTION. These commands can remove many installs. USE a test machine to make sure it is doing what you want. Use a .bat file or command line.
 -------------------------------------------------------------------------------------------------
1. Rem only removes electrical in batch file. Change name and vendor as needed.

WMIC product where "(name like 'AutoCAD Electrical 2016 - English') and (vendor like 'autodesk%')" call uninstall /nointeractive
-------------------------------------------------------------------------------------------------
2. % is wild card. This would remove Electrical and the civil object enabler "Autodesk AutoCAD Civil 3D 2016 64 Bit Object Enabler on AutoCAD Electrical 2016 - English" because it has the string in it.

WMIC product where "(name like '%AutoCAD Electrical 2016 - English%') and (vendor like 'autodesk%')" call uninstall /nointeractive

-------------------------------------------------------------------------------------------------
3. ***WARNING***
!!!REMOVES ALL AUTODESK PRODUCTS!!!

WMIC product where "vendor like 'AutoDesk%'" call uninstall /nointeractive


No comments: