Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » New-Object

New-Object - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

New-Object

Short description
Creates an instance of a Microsoft .NET Framework or COM object.

Syntax
New-Object [-TypeName] <String> [[-ArgumentList] <Object[]>] [-Property <IDictionary>] [<CommonParameters>]
New-Object [-ComObject] <String> [-Property <IDictionary>] [-Strict] [<CommonParameters>]





Description
The New-Object cmdlet creates an instance of a .NET Framework or COM object.


You can specify either the type of a .NET Framework class or a ProgID of a COM object. By default, you type the fully q
ualified name of a .NET Framework class and the cmdlet returns a reference to an instance of that class. To create an i
nstance of a COM object, use the ComObject parameter and specify the ProgID of the object as its value.