Wednesday, January 15, 2014

Uninstalling applications remote using wmic

Uninstall applications from command line on a remote computer.

Single remote computer
wmic /node:COMPUTERNAME product where "name like 'Java(TM) 6%%'" call uninstall /nointeractive

 From multiple computers
first create text file of computer names to pass, ex.  computers.txt
wmic /node:@"computers.txt" product where "name like 'Java(TM) 6%%'" call uninstall /nointeractive

add the switch  /failfast:on  to quickly skip nodes that do not respond (computer off)