« Previous Next »

Thread: Set Farm Status Programmatically

Last post 10-22-2009 8:13 PM by anilr. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-16-2009, 5:47 PM

    • nik220
    • Not Ranked
    • Joined on 10-16-2009, 9:40 PM
    • Posts 1

    Set Farm Status Programmatically

    Hello,

    Is there any way to Set a server farm's status programmatically using PowerShell? It is fairly easy to Get a farm's Status, but I cannot seem to find the Method name to Set a farm online or offline. An Example snipet would be nice.

     Thank You

  • 10-18-2009, 3:38 AM In reply to

    Re: Set Farm Status Programmatically

    Don't have an answer, but we've told clients to delete / change a status file, i.e. http://server/AmIRunning.aspx and then just test that file often - We found that easier for most clients than saying to use PS (usually they want to do this to deploy updates so a file copy first is a trivial step).

    Steve Radich - President
    BitShop.com - IIS Cloud Solution Coming Soon - Join our "Free 3 Month Beta" Waiting List Now...
  • 10-22-2009, 8:13 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Set Farm Status Programmatically

    You can find the ARR schema in %windir%\system32\inetsrv\config\schema\arr_schema.xml and webfarm.xml - the particular property you want to change is the enabled property under the webfarm element.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (3 items)
Microsoft Communities