Windows Vista Forums

com+ object

  1. #1


    Did Guest

    com+ object

    Hi,
    I want to scripting com+ objects on my com+ server
    How can I find the class of this object, so I will make instance with
    new-object cmdlet

    Thanks
    Didi




      My System SpecsSystem Spec

  2. #2


    Marco Shaw Guest

    Re: com+ object

    Did wrote:
    > Hi,
    > I want to scripting com+ objects on my com+ server
    > How can I find the class of this object, so I will make instance with
    > new-object cmdlet
    >
    > Thanks
    > Didi
    >


    http://powershelllive.com/forums/thread/1905.aspx

    Assuming it is a DLL you have, you can use Reflector to view the class,
    then load the assembly, then call the class with new-object.

    Marco

    --
    ----------------
    PowerGadgets MVP
    http://www.powergadgets.com/mvp

    Blog:
    http://marcoshaw.blogspot.com

      My System SpecsSystem Spec

  3. #3


    Hal Rottenberg Guest

    Re: com+ object

    On Aug 20, 1:44 pm, Did <didi10...@walla.co.il> wrote:
    > Hi,
    > I want to scripting com+ objects on my com+ server
    > How can I find the class of this object, so I will make instance with
    > new-object cmdlet


    Using C:\WINDOWS\system32\Com\comexp.msc ?

    Get-WmiObject Win32_ClassicCOMClassSetting ?

    Not sure if this helps.


      My System SpecsSystem Spec

  4. #4


    Keith Hill Guest

    Re: com+ object

    "Did" <didi10000@walla.co.il> wrote in message
    news:1187631883.272772.86200@57g2000hsv.googlegroups.com...
    > Hi,
    > I want to scripting com+ objects on my com+ server
    > How can I find the class of this object, so I will make instance with
    > new-object cmdlet


    The -comobject parameter on new-object works with ProgIDs. A semi-cheesy
    way to list the ProgIDs on your system is:

    gci HKLM:\Software\Classes -ea 0| ? {$_.PSChildName -match '^\w+\.\w+$' -and
    (gp "$($_.PSPath)\CLSID" -ea 0)} | ft PSChildName

    YMMV.

    --
    Keith


      My System SpecsSystem Spec

  5. #5


    Did Guest

    Re: com+ object

    On Aug 21, 6:54 am, "Keith Hill" <r_keith_h...@mailhot.moc.no_spam_I>
    wrote:
    > "Did" <didi10...@walla.co.il> wrote in message
    >
    > news:1187631883.272772.86200@57g2000hsv.googlegroups.com...
    >
    > > Hi,
    > > I want to scripting com+ objects on my com+ server
    > > How can I find the class of this object, so I will make instance with
    > > new-object cmdlet

    >
    > The -comobject parameter on new-object works with ProgIDs. A semi-cheesy
    > way to list the ProgIDs on your system is:
    >
    > gci HKLM:\Software\Classes -ea 0| ? {$_.PSChildName -match '^\w+\.\w+$' -and
    > (gp "$($_.PSPath)\CLSID" -ea 0)} | ft PSChildName
    >
    > YMMV.
    >
    > --
    > Keith


    Thank to all of you
    Didi


      My System SpecsSystem Spec

com+ object

Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding TextBox.Text to property in nested (multi levels) object withbindingsource, Error if grandchild object is NULL Efy .NET General 0 14 Oct 2009
Inherit from usercontrol - Object not set to instance of an object Nemisis .NET General 0 10 Jun 2009
datalist -- Object reference not set to an instance of an object. Deere .NET General 0 31 Aug 2008
Testing object arrays using Compare-Object and -contains Alex K. Angelopoulos [MVP] PowerShell 2 31 Aug 2006
Adding canonical aliases for Compare-Object, Measure-Object, New-Object Alex K. Angelopoulos [MVP] PowerShell 2 26 May 2006