我们正在使用ARR作为反向代理,我想由于各种原因使服务器不可用。 这怎么可以使用Powershell来完成?
编辑1:
我发现这个使用JScript的http://blogs.iis.net/anilr/archive/2009/11/09/using-arr-config-extensibility-to-gracefully-stop-server.aspx教程。 但是我不能把它翻译成PowerShell。
编辑2:
使用Webpipe理模块中的Set-WebConfigurationProperty,我可以更改服务器的设置。 我在%windir%\system32\inetsrv\config\schema\arr_schema.xmlfind了SetState,但我不知道如何调用该方法。