WMIC commands not working in K1000 Scripting?
I'm trying to uninstall some old app versions via WMIC name calls, but for whatever reason I simply cannot get it to run in K1000 scripting.
Currently I'm running the following Online Script as System:
Launch “$(KACE_SYS_DIR)\cmd.exe” with params “/c wmic product where ”name='Blue Jeans'“ call uninstall /nointeractive”.
If I run the parameters locally it works every time, but through KACE, scripting reports complete but the program never uninstalls. Anybody know what's going on?
I've tried running offline, online as a local admin instead of System, and I've tried running as a batch file instead of launching CMD with parameters, but I just can't get it to work via the K1000.
I'm trying to do it this way to avoid having to create a batch file with several dozen uninstall strings listed in a row.
Answers (1)
This works for me fine
Comments:
-
Welp,
I copied your microsoft silverlight line to test, the only difference being you're using like to my ='s, and it worked. So I switched over silverlight to Blue Jeans, and low and behold it failed to work.
However, when I run the exact same line locally it works.
What's weird is a bunch of our other scripts that uninstall with WMIC have stopped working as well through K1000, but yet that silverlight one worked...
edit: nevermind i'm an idiot. Both BlueJeans and the other two apps I'm working with were installed to %appdata% so it has to be run as the logged in user. - Forest-G-Nome 4 years ago