拒绝访问尝试运行IISReset作为本地aministratorlogin

我是Windows Server 2012计算机上本地pipe理员组的成员,但是当我尝试从命令提示符运行IISReset时,我得到:

Access denied, you must be an administrator of the remote computer to use this command. Either have your account added to the administrator local group of the remote computer or to the domain administrator global group. 

我在这台机器上禁用了UAC,而且我通过远程桌面连接pipe理器进行了RDP,所以我不确定机器为什么认为我不是本地pipe理员。

即使禁用UAC,您是否使用pipe理命令提示符?

即使您已将UAC滑块移动到“Never Notify”,用于pipe理性地运行IISRESET的安全令牌也不在正常的命令提示符下。

您可以按照以下步骤操作:

  1. 打开PowerShell
  2. 键入Regedit然后回车
  3. 浏览到HKEY_LOCAL_MACHINE \ SOFTWARE \ MicrosoftWindows \ CurrentVersion \ policies \ system
  4. 双击EnableLUA
  5. 将数值数据更改为0
  6. 单击确定,然后重新启动服务器

完全禁用UAC,然后尝试从正常的cmd提示符下运行IISRESET,但是在任何服务器上完全禁用UAC并不是一个好习惯。

CREDIT: http : //www.nimbo.com/blog/how-to-disable-user-account-control-in-windows-server-2012/