windows-server-2008 – 如何通过Win Server 2008上的防火墙允许(远程)IISReset

我正在尝试运行以下命令,以重置远程计算机上的IIS.

IISReset <remoteMachine>

如果我禁用域防火墙,一切正常.启用防火墙后,我明白了

The RPC server is unavailable.

最初,我尝试启用远程管理(RPC-EPMAP)和任何其他看起来非常相关的规则.然后我尝试启用所有预定义规则,但没有成功.

您可以尝试以下命令行将入站规则添加到Web服务器上的防火墙:
netsh advfirewall firewall add rule name="Remote IIS inetinfo" dir=in action=allow description="Remote IIS Service Managment" program="%systemroot%\System32\inetsrv\inetinfo.exe" enable=yes

netsh advfirewall firewall add rule name="COM+ Remote Administration (All Programs)" dir=in action=allow description="" program="%windir%\system32\dllhost.exe" enable=yes localport=RPC protocol=tcp

在尝试访问IIS服务时,我不得不使用它们来解决WMI / RPC问题.错误如:

Creating an instance of the COM component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from the IClassFactory Failed due to the following error: 800706ba.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...