/build/static/layout/Breadcrumb_cap_w.png

WMIC script with KACE 6.3

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

1 Comment   [ + ] Show comment
  • Please remove your duplicate post on this topic. - dunnpy 8 years ago

Answers (3)

Answer Summary:
Posted by: SMal.tmcc 8 years ago
Red Belt
3

Top Answer

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







Posted by: Olendis 8 years ago
Orange Belt
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>.
Posted by: Olendis 8 years ago
Orange Belt
0
Thank you SMal.tmcc ! 
That's work perfectly.

Comments:
  • can you mark this answered, thanks - SMal.tmcc 8 years ago
 
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