Get-ItemProperty
CautionRead/write registry values
Get-ItemProperty HKLM:\...\<key>
Registry access via HKLM:/HKCU: drives — friendlier than reg.exe in scripts. Back up first.
Examples
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' DisplayVersionRead the OS version value
Syntax
Get-ItemProperty <path> [-Name prop] / Set-ItemProperty
Before you run it
Bad writes can break Windows.
Related commands
- regRegistry from the CLI
- Get-PSDriveList PS drives
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store