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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store