Scripting Question

Move file to system32 and run

03/13/2019 363 views


I have looked over many questions but haven't found an answer.

We have some custom software and the developer has some interesting install procedures.

So, they want us to move an .msi and batch script to System32 and then run the batch as Administrator. I trust this developer so there's nothing fishy going on but trying to get Kace SMA to do this automatically is frustrating.

I've tried adding a line to the batch script to copy the .msi to System32 and then run it but it's not wanting to copy/move over due to permissions. I've tried making a shortcut and having the shortcut run as Administrator. That works but I haven't gotten SMA to run the shortcut, you have to manually go and run it.

Any suggestions?



Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author


create 2 scripts

first runs as system that moves the files to system 32

the second runs as administrator to install.  You should be able to take the batch file and use that as a batch script.

use task chains to run one after the other. 

Answered 03/13/2019 by: SMal.tmcc
Red Belt

  • Thank you! That worked.

All Answers

 I trust this developer

You trust a developer that can't get an MSI to install without it being run from System32?!? I wouldn't trust them to get out of bed without causing themselves serious injury! I've encountered some clueless vendors in my time but I think you may have hit pay-dirt with this bunch!

Answered 03/14/2019 by: VBScab
Red Belt

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