February 2019
Intermediate to advanced
626 pages
15h 51m
English
Get-ItemProperty and Set-ItemProperty are most useful when manipulating registry values.
The following method may be used to get values from the registry:
Get-ItemProperty -Path HKCU:\Environment Get-ItemProperty -Path HKCU:\Environment -Name Path Get-ItemProperty -Path HKCU:\Environment -Name Path, Temp
Individual values may be written back to the registry under an existing key:
Set-ItemProperty -Path HKCU:\Environment -Name NewValue -Value 'New'
A value may be subsequently removed:
Remove-ItemProperty -Path HKCU:\Environment -Name NewValue
The Set-ItemProperty command does not directly allow the value type to be influenced. The command will do as much as it can to fit the value into the existing type. For a property with ...
Read now
Unlock full access