/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


WMIC script with KACE 6.3

11/20/2015 2793 views
Hi there,

I would like to know if it is possible and how to use WMIC  with KACE 6.3 ?

For further information, i would like to use this command on some computer: wmic.exe product where "name like ‘Java%%'" call uninstall /nointeractive

The line looks like: Launch "SYS\cmd.exe" using parameters wmic.exe product where "name like ‘Java%%'" call uninstall /nointeractive

This will uninstall every version of Java installed on the target computer.
Also, this command run fine with an admin command without using KACE.

Thanks
Answer Summary:
1 Comment   [ + ] Show comment

Comments

  • Please remove your duplicate post on this topic.

Answer Chosen by the Author

3
this is from http://www.itninja.com/question/script-work-on-some-pc-but-not-others

I have switched to using wmic to uninstall old java in my search and destroy java script.
Just make sure to check "wait for completion" for each step.

$(KACE_SYS_DIR)
cmd
/c wmic product where "name like 'Java 7 Update%%'" call uninstall /nointeractive







Answered 11/20/2015 by: SMal.tmcc
Red Belt

All Answers

0
Most usefull, i forget to tell you that for now, using this command just pop a MS-DOS windows. Without anything in it except the path C:\Windows\System32>.
Answered 11/20/2015 by: Olendis
Orange Belt

0
Thank you SMal.tmcc ! 
That's work perfectly.
Answered 11/23/2015 by: Olendis
Orange Belt

  • can you mark this answered, thanks
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ