Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Set-ItemProperty

Set-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 or changes the value of a property of an item.

Set-ItemProperty [-Path] <String[]> [-Name] <String> [-Value] <Object> [-Credential <PSCredential>] [-Exclude <String[]
>] [-Filter <String>] [-Force] [-Include <String[]>] [-PassThru] [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParamete
r>]] [<CommonParameters>]
Set-ItemProperty [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Force] [-Include <String[]>] [
-PassThru] -InputObject <PSObject> -LiteralPath <String[]> [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParameter>]] [
Set-ItemProperty [-Path] <String[]> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Force] [-In
clude <String[]>] [-PassThru] -InputObject <PSObject> [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParameter>]] [<Comm
Set-ItemProperty [-Name] <String> [-Value] <Object> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String
>] [-Force] [-Include <String[]>] [-PassThru] -LiteralPath <String[]> [-Confirm] [-WhatIf] [-UseTransaction [<SwitchPar
ameter>]] [<CommonParameters>]

The Set-ItemProperty cmdlet changes the value of the property of the specified item. You can use the cmdlet to establis
h or change the properties of items. For example, you can use Set-ItemProperty to set the value of the IsReadOnly prope
rty of a file object to true.

You also use Set-ItemProperty to create and change registry values and data. For example, you can add a new registry en
try to a key and establish or change its value.