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
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
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
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.
"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
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
| 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 |