以管理员身份登录时IIS重新启动错误 [英] IIS Restart Error when logged in as administrator

查看:424
本文介绍了以管理员身份登录时IIS重新启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiii



从批处理文件重启II时出现以下错误。



访问被拒绝,您必须是远程计算机的管理员才能使用此

命令。将您的帐户添加到管理员本地组

远程计算机或域管理员全局组




(我可以通过使用以下命令手动从命令提示符重新启动IIS

iisreset%MachineName%/ stop)



尽管我已经以管理员身份登录我收到此错误。



我让UAC关闭并重新启动我的服务器,我仍然得到相同的结果..



这方面的任何帮助都将受到高度赞赏......!



感谢Avance ..... .... :)

解决方案

正如错误所说,你必须是你的命令重置IIS的机器的管理员。



此外,请确保管理员上下文运行 命令提示符/批处理文件



以下是我用来完成工作的命令。



 iisreset%ComputerName%/ stop 
暂停
iisreset%ComputerName%/ start
pause


Hiii

I am getting the following error while restarting the IIs from a batch file.

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


(I am able to restart the IIS from the command prompt manually
by using the following command iisreset %MachineName% /stop)

Even though i have logged in as an Administrator i am receiving this error.

I made UAC to off and restarted my server,Still i am getting the same..

Any help in this regard willl be highly appreciated...!

Thanks in Avance.........:)

解决方案

As the error said, you have to be Administrator of the machine whose IIS is being reset by your command.

Also, make sure you are running your command prompt/batch file in Administrator context.

Following are the commands I use to do the job.

iisreset %ComputerName% /stop
pause
iisreset %ComputerName% /start
pause


这篇关于以管理员身份登录时IIS重新启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆