![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Can I use the uuid with new-object -comobject I would like to access a com object but I only have the uuid. Can this be done? -- Douglas Woods |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Can I use the uuid with new-object -comobject Not sure if you can, but you can find the ProgID from the GUID first like this : PoSH> function get-ProgID ($guid) {(gp "registry::\HKEY_CLASSES_ROOT\CLSID\{$GUID}\ProgID").'(default)'} PoSH> get-ProgID 13709620-C279-11CE-A49E-444553540000 Shell.Application.1 PoSH> New-Object -ComObject (get-ProgID 13709620-C279-11CE-A49E-444553540000) Application Parent ----------- ------ System.__ComObject System.__ComObject h.t.h. Greetings /\/\o\/\/ http://thePowerShellGuy.com "DouglasWoods" wrote: > I would like to access a com object but I only have the uuid. Can this be done? > -- > Douglas Woods |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Can I use the uuid with new-object -comobject Hi //o//, > Not sure if you can, but you can find the ProgID from the GUID first like > this : [...] Or like this: $type= [Type]::GetTypeFromCLSID('13709620-C279-11CE-A49E-444553540000') $obj = [Activator]::CreateInstance($type) hth Max |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Service Pack 2 Vista64 H/P The string universal unique identifier (UUID) is invalid | Windows Updates | |||
| RE: CLID, SID, GUID or UUID? | Vista account administration | |||
| new-object -comobject "CAPICOM.Signed" failing on Win2k3? | PowerShell | |||
| New-Object -ComObject x -Strict - A very good idea | PowerShell | |||
| Adding canonical aliases for Compare-Object, Measure-Object, New-Object | PowerShell | |||