« Previous Next »

Thread: Restart IIS from antoher machine via iisreset

Last post 06-16-2009 3:45 AM by atze187. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 05-19-2009, 3:16 AM

    • atze187
    • Not Ranked
    • Joined on 11-26-2008, 7:30 AM
    • Posts 2

    Restart IIS from antoher machine via iisreset

    Hi,

    i'm trying to restart iis7 (Windows Server 2008 Standard x64) from another machine using the following:

    iisreset [COMPUTERNAME] /restart

    My problem is, that it will always result in a "RPC server is not available" message. When i shutdown the Windows firewall, it works like a charm. Does anyone.know which firewall rule applies to that problem?

    tia,
    atze

  • 05-19-2009, 3:47 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,396

    Re: Restart IIS from antoher machine via iisreset

    My test reveals that TCP port 2335 need to open on the target server via its firewall. Otherwise, iisreset will give you such an error message.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-16-2009, 2:16 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,396

    Re: Restart IIS from antoher machine via iisreset

    I would like to correct my answer above. Actually this is a DCOM/RPC firewall configuration issue, so you can follow my blog post here,

    http://blogs.msdn.com/lexli/archive/2009/05/19/the-rpc-server-is-unavailable-for-iisreset.aspx

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 06-16-2009, 3:45 AM In reply to

    • atze187
    • Not Ranked
    • Joined on 11-26-2008, 7:30 AM
    • Posts 2

    Re: Restart IIS from antoher machine via iisreset

    Thanks for zthe update. Last week we decided to use pcexec to perform an iisreset directly on the remote machine, which works like a charm. I'll try the described scenario next days.

Page 1 of 1 (4 items)
Microsoft Communities