createObject(progId)
creates an Active X Object that is identified by progId
. (I am still not sure what the difference is to an «ordinary» COM object). HKEY_CLASSES_ROOT\<Prog.id>
createObject()
is the cmdlet new-object
: The statement set obj = createObject('foo.bar')
would be the following in PowerShell: PS C:\> $comObj = new-object -COMObject 'foo.bar'
getObject()
application.userControl
(at least in Excel).