PowerShell

Registry


        PS C:\> (gcm -Noun ItemProperty).name
        Clear-ItemProperty
        Copy-ItemProperty
        Get-ItemProperty
        Move-ItemProperty
        New-ItemProperty
        Remove-ItemProperty
        Rename-ItemProperty
        Set-ItemProperty
        

Set-ItemProperty

The Set-ItemProperty cmdlet changes the value of the property of the specified item. You can use the cmdlet to
establish or change the properties of items. For example, you can use Set-ItemProperty to set the value of the
IsReadOnly property 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 entry to a key and establish or change its value.

Set-ItemProperty -Path HKCU:\Software\example -Name newproperty -Value newvalue

New-ItemProperty

New-ItemProperty -Path "HKLM:\Software\MyCompany" -Name "NoOfEmployees" -Value 822