I have read the documentation that explains you cannot elevate a custom action to run as admin if it is executed as immediate (as apposed to deferred, which will allow you to run it under the local system account).
My script can be executed as a batch or powershell.
Is it possible to pass in the "runas" command in powershell script parameters in order to elevate it?
My script maps a network drive and has to be run immediately. There are two accounts on the target machine, standard user and admin. The drive needs to be mapped for both. I have no issues mapping for the standard user.
Any advice on how to run a script elevated immediately? Thanks!
FOLLOW US
Get the latest news in Application Packaging