Previous Next

Thread: PowerShell and IIS 6.0

Last post 07-10-2008 1:16 PM by mathgig. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-20-2008, 6:46 PM

    • MatthewMcD
    • Not Ranked
    • Joined on 06-20-2008, 10:41 PM
    • Posts 1
    • MatthewMcD

    PowerShell and IIS 6.0

    Is it possible to run PowerShell scripts against IIS 6? I see a bunch of examples for IIS 7 but I am still running 6.0 on Win2k3. (Or do I still need to use Adsutil.vbs)

     I want to script the log location for a web site.

     Any pointers to resources would be GREAT.

    Thanks!

    Matthew

  • 06-21-2008, 9:01 AM In reply to

    Re: PowerShell and IIS 6.0

    IIS6 doesn't support any direct Powershell scripts written for IIS 7.  Adsutil.vbs is still the best option, unless you want to rewrite it in Powershell.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 07-10-2008, 1:16 PM In reply to

    • mathgig
    • Not Ranked
    • Joined on 07-03-2008, 4:44 PM
    • Posts 4
    • mathgig

    Re: PowerShell and IIS 6.0

    Why don't you trying to use the IIS WMI object?

    Most of IIS functionailities are open via WMI interface and these are all visible from powershell environment.

    Try  get-wmiobject -namesapce "root/MicrosoftIISv2" -list 

Page 1 of 1 (3 items)
Page view counter