CraigSCCM Posted June 11, 2015 Report post Posted June 11, 2015 Hi guys, I've packaged up an Uninstall batch script and i'm using the following command in the .batch file @ECHO OFF msiexec.exe /X{26A24AE4-039D-4CA4-87B4-2F83218045F0} /qn /norestart then in my command line in SCCM i have: runas /user:"Administrator" uninstall.bat I have tried it with just uninstall.bat and that still didn't work :-( I have attached my AppDiscoveryLog Any help is much appreciated - thank you in advance Craig Quote Share this post Link to post Share on other sites More sharing options...
simulacra75 Posted June 17, 2015 Report post Posted June 17, 2015 Why are you using the "runas" command? There should be no need, in my opinion. In the properties of the program are you setting it to "run as an administrator"? Quote Share this post Link to post Share on other sites More sharing options...
Arcuss88 Posted June 17, 2015 Report post Posted June 17, 2015 Why would you need to use a batch file to uninstall? If you're using SCC '07 just create a collection where that version of Java is installed (Listed in Programs and Features I believe is the option) and create a Package where the Program command line is your msi.exe uninstall string. If you're using SCCM '12 just create an Application with the MSI (if you have it) and the uninstall will be populated. Then just deploy the Application selected "Uninstall" during the wizard. IMO I try to avoid using batch files as it tends to overcomplicate simple tasks sometimes. I can elaborate more if the above isn't clear 1 Quote Share this post Link to post Share on other sites More sharing options...