Windows Vista Forums

Building MMC Snapins on top of PowerShell CmdLets

  1. #1


    Joris van Lier Guest

    Building MMC Snapins on top of PowerShell CmdLets

    Hi all, i've heard about MMC SnapIns that invoke powershell commands, for example The Exchange 2007 Management Console.
    I can find documentation about creating Powershell SnapIns, and about creating MMC SnapIns,
    however i can't find any info about combining these two techniques.
    Now i could just start invoking powershell and do some fiddling to get the results into MMC ResultRecords manually and display them from there, but i suspect there might be better ways to expose the PSObjects to MMC...

    Do you know of examples and/or documentation about creating MMC SnapIns that invoke Powershell CmdLets?
    Is this something that will be addressed in Powershell vServicePack or vNext ?
    Is there preliminary documentation available ? (i have access to Powershell on MS Connect)

    I would appreciate some guidance from the Powershell team on this, the "PowerShell Manifesto' for example gave me ideas about the future of powershell, but no timeframe for delivery of the MMC integration.



    regards

    Joris van Lier

      My System SpecsSystem Spec

  2. #2


    Marco Shaw Guest

    Re: Building MMC Snapins on top of PowerShell CmdLets

    >I can find documentation about creating Powershell SnapIns, and about
    >creating MMC SnapIns,
    >however i can't find any info about combining these two techniques.


    I'll be attending a Microsoft workshop in mid-April that will likely cover
    this.

    I'll report back if I'm not under an NDA.

    Might want to check out www.dinnernow.net to see some source code on how
    they interact with MMC 3.0. It's not via cmdlets from what I understand
    though.

    Marco



      My System SpecsSystem Spec

  3. #3


    klumsy@xtra.co.nz Guest

    Re: Building MMC Snapins on top of PowerShell CmdLets

    I went to an ISV conference that covered this last year. the bad news
    its late and i'd have to look up a few things, so i'm not going to
    tell you how. the good news is its simple and you can get something up
    and running in 15 to 30 minutes

    but first have you tried hosting powershell at all.. i would recommend
    doing that in a windows form first..
    just do something like through down a button and datagrid, use a
    runspace invoker to run "get-process" and bind the returned collection
    to the datagrid.. or loop trhoguh and add to a dataset as per your
    preference. Once you do that, its not hard to start a MMC3.0 project.


      My System SpecsSystem Spec

  4. #4


    Joris van Lier Guest

    Re: Building MMC Snapins on top of PowerShell CmdLets

    klumsy@xtra.co.nz wrote:
    > I went to an ISV conference that covered this last year. the bad news
    > its late and i'd have to look up a few things, so i'm not going to
    > tell you how. the good news is its simple and you can get something up
    > and running in 15 to 30 minutes
    >
    > but first have you tried hosting powershell at all.. i would recommend
    > doing that in a windows form first..
    > just do something like through down a button and datagrid, use a
    > runspace invoker to run "get-process" and bind the returned collection
    > to the datagrid.. or loop trhoguh and add to a dataset as per your
    > preference. Once you do that, its not hard to start a MMC3.0 project.


    Tank you so much , that was the missing piece, i have to host powershell,
    not invoke it.
    I'll go practice my hosting first then...

    Joris

    p.s. I appreciate you not laying it out for me, just giving a pointer to set me on the right track, so i get to have my "AHA Erlebnis"


      My System SpecsSystem Spec

  5. #5


    Marco Shaw Guest

    Re: Building MMC Snapins on top of PowerShell CmdLets


    <klumsy@xtra.co.nz> wrote in message
    news:1175414541.579925.107930@n59g2000hsh.googlegroups.com...
    >I went to an ISV conference that covered this last year. the bad news
    > its late and i'd have to look up a few things, so i'm not going to
    > tell you how. the good news is its simple and you can get something up
    > and running in 15 to 30 minutes


    Would be cool to see stuff like this on powershelllive.com...

    Marco



      My System SpecsSystem Spec

Building MMC Snapins on top of PowerShell CmdLets

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Exchange Powershell cmdlets from VB.NET Marco Shaw [MVP] PowerShell 1 17 Feb 2010
Building a project that uses PowerShell using MSBuild AndrueC PowerShell 3 09 Jan 2008
PowerShell CmdLets dm3281 PowerShell 7 17 Oct 2007
Loading Powershell Snapins in your Profile Hal Rottenberg PowerShell 0 02 Sep 2007
Book: Professional Windows PowerShell Programming: Snapins, Cmdlets,Hosts and Providers (Paperback) by Wrox Marco Shaw PowerShell 1 28 May 2007