|07 Mar 2013||#1|
| || |
WMIC command help
Hope this is the right place for this.
I support the software updates in an enterprise. When pushing out the newest Java, I use a WMIC command in a batch file to uninstall all previous versions before installing the newest.
wmic product where "name like 'java%%'" call uninstall /nointeractive
It has come to my attention that this command is also uninstalling the Java Development Kit from the developers PCs. They are not happy.
I'm trying to modify this command to uninstall the JRE while leaving the JDK. How can I use the "Description" property of the "Product" in the above command? The description of the JRE is "Java..." (for example) while the description of the JDK is "Java SE Develpopment Kit...". This difference would allow me to do what I need, but I don't know how.
|My System Specs|
|Similar help and support threads for2: WMIC command help|
|Using WMIC to list class information||Software|
|Help needed executing command prompt command||General Discussion|
|No REG Command in "Open elevated command window here" DOS Box||General Discussion|
|Runing wmic command in OOBE mode||Installation & Setup|
|Run administrative command prompt from command prompt||General Discussion|
|cd command||General Discussion|
|Command Prompt command <ipconfig> not working||Network & Sharing|
|Our Sites ||Site Links ||About Us ||Find Us |
© Designer Media Ltd
All times are GMT -5. The time now is 12:34 AM.