Run Command as administrator in PowerShell script. UAC

前端 未结 4 1638
北海茫月
北海茫月 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:33

    Set the option "EnableLUA" (DWORD value) found in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System to 0 and reboot.

    This will disable UAC without a problem, I would do it for all your users, whether with or without permission is up to you, because the vista UAC is so horrid that I do believe the less people that have it on the better (at least in vista ) they are. Thsi trick also works in Win7 too.

    Have fun with my registry trick :)

    P.S.: As it turns out SO is censoring comments that show how to disable UAC as far as my post/thread with the above answer is concerned (a diligent answer was removed).

提交回复
热议问题