« Previous Next »

Thread: Remote capabilities

Last post 04-16-2008 11:28 AM by sergeia. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 04-15-2008, 9:19 PM

    Remote capabilities

    Hi All,

    Thanks for bringing PowerShell into IIS! This is awesome and will make my job much easier!

    Just a quick question:

    Can I execute an IIS cmdlet against remote servers? I'd love to use those cmdlets to manage server core remotely. That would be simply perfect!

    /Dung

     

  • 04-16-2008, 4:06 AM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

    Re: Remote capabilities

    Today remoting is not yet ready for consumption. In Powershell v1.0 IIS provider could only use DCOM remoting provided by configuration interfaces. Under Vista DCOM remoting setup is quite tricky and limited. We are working on making it easier to use. By the next TP we will clear our plans on this.

    --Sergei 

     

  • 04-16-2008, 10:09 AM In reply to

    Re: Remote capabilities

    You would have 2 options, with v1, as I see it:

    1. Using WMI, you can do a lot of things with IIS 7, but the syntax can be challenging.

    2. Use WinRM.  Example from my PowerShell session on XP talking to a Server Core 2008 VM:

    PSH>winrs -r:http://server -u:Administrator -p:xx c:\windows\system32\inetsrv\appcmd.exe

    With the latter above, I have full access to run all the stuff supported by appcmd.exe.

  • 04-16-2008, 11:01 AM In reply to

    Re: Remote capabilities

    Sergei

    Thanks much for the info! I'm looking forward to hearing more in the next TP!

    /Dung

     

  • 04-16-2008, 11:03 AM In reply to

    Re: Remote capabilities

    Marco

    Thanks!

    You can also use the Microsoft.Web.Administration .NET API with PowerShell and remotely manage Server Core too. Really cool!

    /Dung

     

  • 04-16-2008, 11:28 AM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

    Re: Remote capabilities

    Microsoft.Web.Administration uses the same DCOM remoting that I was talking about, with all the same limitations. In fact, Powershell provider in TP1 uses this library as base framework, and all PowerShell objects produced by provider, have Microsoft.Web.Administration types as BaseObject, look at any object you are getting from PowerShell, for example:

    >get-item 'iis:\sites\default web site' | get-member

Page 1 of 1 (6 items)
Microsoft Communities