The problem: I need to copy a new .exe file down to the client. Easy enough, but then I need to run SOMETHING to copy that .exe and overwrite an existing .exe of the same name that resides the ProgramFiles(x86) folder. I can do everything except the overwrite because it has to be done AS Administrator (such that you get by right clicking and choosing "Run as Administrator").
I have tried everything I can think of with a .cmd, .bat script (using xcopy and copy) which works fine once everything lands and you right click run as administrator. Anything else even robocopy gets "Access Denied". Is there no way around this? I have also tried a task sequence which also runs into permission problems using the same local admin account which is also a domain account.
I really don't want to have to run all of these manually. Any help would be greatly appreciated.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
The problem: I need to copy a new .exe file down to the client. Easy enough, but then I need to run SOMETHING to copy that .exe and overwrite an existing .exe of the same name that resides the ProgramFiles(x86) folder. I can do everything except the overwrite because it has to be done AS Administrator (such that you get by right clicking and choosing "Run as Administrator").
I have tried everything I can think of with a .cmd, .bat script (using xcopy and copy) which works fine once everything lands and you right click run as administrator. Anything else even robocopy gets "Access Denied". Is there no way around this? I have also tried a task sequence which also runs into permission problems using the same local admin account which is also a domain account.
I really don't want to have to run all of these manually. Any help would be greatly appreciated.
Thanks
Share this post
Link to post
Share on other sites