Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » New-ItemProperty

New-ItemProperty - 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 »


Short description
Creates a new property for an item and sets its value. For example, you can use New-ItemProperty to create and change registry values and data, which are properties of a registry key.

New-ItemProperty [-Path] <String[]> [-Name] <String> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <Strin
g>] [-Force] [-Include <String[]>] [-PropertyType <String>] [-Value <Object>] [-Confirm] [-WhatIf] [-UseTransaction [<S
witchParameter>]] [<CommonParameters>]
New-ItemProperty [-Name] <String> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Force] [-Incl
ude <String[]>] [-PropertyType <String>] [-Value <Object>] -LiteralPath <String[]> [-Confirm] [-WhatIf] [-UseTransactio
n [<SwitchParameter>]] [<CommonParameters>]

The New-ItemProperty cmdlet creates a new property for a specified item and sets its value. Typically, this cmdlet is u
sed to create new registry values, because registry values are properties of a registry key item.

This cmdlet does not add properties to an object. To add a property to an instance of an object, use the Add-Member cmd
let. To add a property to all objects of a particular type, edit the Types.ps1xml file.