Page 1 of 1

[PSS2016]Primal Sense for Comobject-Types

Posted: Thu Nov 10, 2016 7:58 am
by Bosparan
Hi guys,

and yet another small-or-not-so-small request (I'm on a roll!):

When creating a new object with ... New-Object I get good Primal Sense for known .NET types. However, if I want to create a new ComObject, I don't get help at all. Wouldn't it be nice if I actually got some help on that?
For example, this is one I frequently use and is available on all windows computers:

Code: Select all

$SYS_ServiceManager = New-Object -ComObject "Microsoft.Update.ServiceManager"
You can get a list of locally available Com-Classes from wmi:

Code: Select all

Get-WMIObject Win32_ClassicCOMClassSetting | Select-Object -ExpandProperty VersionIndependentProgId