I have a batch script that can ONLY be run properly if I right click and select Run As Administrator. When I push this batch script out it fails.
So then I made a shortcut to the batch script, and made that permanently run as administrator through the advanced shortcut settings. This works by double clicking the shortcut on my local machine but when I push out via PDQDeploy it fails with a Not a valid Win32 application. So apparently I can't push out .lnk shortcut files.
I can put a /runas Administrator in the batch file but that prompts for a password and the password can't be embedded or piped (not that I would want to do that anyway).
Does anyone have any other ideas on how to do this and simulate the right click Run As Administrator and get it to work with PDQDeploy? it is already being sent out with domain admin privileges. Thanks in advance.
Please sign in to leave a comment.