Changes

Jump to: navigation, search

Using COM with Windows PowerShell 1.0

1 byte removed, 21:28, 22 December 2008
Creating COM Object Instances in Windows PowerShell
New COM object instances are created within Windows PowerShell using the ''new-object'' cmdlet combined with the ''-comobject'' parameter. This parameter may also be abbreviated to ''-com''. In order to avoid a any ambiguity which may result in a .NET or interop library with the same name being loaded, the ''-strict'' switch is also recommended:
new-object -comobject '''object name'' -strict
For example, to create new ''InternetExplorer.Application'' object:

Navigation menu