Make server unavailable gracefully using Powershell in ARR
Posted
by
Carl Bergquist
on Server Fault
See other posts from Server Fault
or by Carl Bergquist
Published on 2012-10-15T09:41:39Z
Indexed on
2012/10/15
15:40 UTC
Read the original article
Hit count: 494
We are using ARR as reverse proxy and I would like to make a server unavailable for various reasons. How can this be done using Powershell?
Edit 1:
I found this http://blogs.iis.net/anilr/archive/2009/11/09/using-arr-config-extensibility-to-gracefully-stop-server.aspx tutorial for using JScript. But I'm not able to translate it to powershell.
Edit 2:
Using the Set-WebConfigurationProperty in WebAdministration module I'm able to changes settings for a server. I found SetState in %windir%\system32\inetsrv\config\schema\arr_schema.xml
but I don't know how to invoke that method.
© Server Fault or respective owner