Run As Administrator Batch File Failure

Comments

2 comments

  • Shane Corellian

    The run as Administrator is unnecessary when deploying because the deployments are already executed in an elevated state. What error are you seeing when you attempt to deploy the batch file itself? You are correct, using a shortcut (LNK) file as the Deploy File will not work. We need to know if the batch file is failing to execute or if the error is coming from the contents of the batch.

    0
    Comment actions Permalink
  • Brent Vierling

    This time when I ran it, I got an error 2 returned (last night when I pushed it out to a different computer it ran until the timeout kicked in, that is why I posted this).  I added %errorlevel% to my batch file and ran it manually on the computer and got a error code 2.  I found the issue in my batch file and redeployed and it went fine.   Thanks for the guidance.

    0
    Comment actions Permalink

Please sign in to leave a comment.