Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: WMIC command help


07 Mar 2013   #1

Windows 7 Enterprise x64
 
 
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.

Thank you.

My System SpecsSystem Spec
.

Reply

 WMIC command help




Thread Tools



Similar help and support threads for2: WMIC command help
Thread Forum
Using WMIC to list class information Software
Help needed executing command prompt command General Discussion
Solved 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

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:56 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33