是否可以使用Powershell执行此说明 (“远程pipe理IISpipe理器”)中的“启用远程连接”步骤?
从IIS Remote Mgmt上的这个页面看来,您将需要添加一个registry项:
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WebManagement\Server /v EnableRemoteManagement /t REG_DWORD /d 1
要添加一个新的regkey与powershell,请尝试:
New-Item -path Registry HKLM\SOFTWARE\Microsoft\WebManagement\Server\EnableRemoteManagement -PropertyType DWord -Value 1
请注意,这没有经过testing。