Run Command as administrator in PowerShell script. UAC

前端 未结 4 1670
北海茫月
北海茫月 2021-02-20 05:06

OK here is my issue:

I am trying to run a script remotely on a server.

I am an administrator on both boxes, firewall exceptions are in place, remote admin is e

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-20 05:26

    Is there anyway to get this to run as administrator without having to click yes on a UAC box?

    If this were possible it would entirely defeat the point of UAC.

    Thus, it would appear your only real solution is to disable UAC on the box.

提交回复
热议问题