PowerShell Genie

Get-ItemProperty

Use Get-ItemProperty to read registry values from a key — or extended properties of files and folders — without opening regedit.

Command 4 min read PowerShell 7 on Windows

Documentation: Microsoft Learn — get-itemproperty

Syntax

1PS> Get-ItemProperty [-Path] <String[]> [-Name <String[]>] [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [<CommonParameters>]

Try it

Windows PowerShell

PowerShell example · browser support is limited.

Execution scope: The full example below requires PowerShell outside this browser. You can edit this runner to use the supported practice commands; unsupported syntax returns an explanation.

Interactive simulation · fictional data

Examples

Read one registry value

1PS> Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion' -Name ProgramFilesDir
Show reference output

Illustrative output · values vary by environment

ProgramFilesDir : C:\Program Files
PSPath          : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Read every value under a key

1PS> Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer'
Show reference output

Illustrative output · values vary by environment

Logon UserName  : CONTOSO\priya
ShellState      : {36, 0, 0, 0...}
CleanShutdown   : 1

Read the same value from many computers

1PS> Invoke-Command -ComputerName SRV01, SRV02 -ScriptBlock { Get-ItemProperty -Path 'HKLM:\SOFTWARE\MyApp' -Name Version }
Show reference output

Illustrative output · values vary by environment

Version    PSComputerName
-------    --------------
2.4.1      SRV01
2.4.1      SRV02

Parameters

Parameter definitions:

  • -Path — The registry key path, using the HKLM: or HKCU: drive, or a file system path.
  • -Name — The value name to read. Omit it to read all values under the key.
  • -Filter — A wildcard filter applied to value names.
  • -Include / -Exclude — Limits which items are processed when -Path uses wildcards.

Microsoft Learn — get-itemproperty

Keys are folders, values are the data

The registry has two levels that beginners mix up: keys are like folders, and values are the named data inside them. Get-ItemProperty reads values. To list the subkeys instead, use Get-ChildItem on the key path.

Omitting -Name returns every value under the key, plus PowerShell's own PSPath, PSParentPath, and PSChildName properties. Pipe to Select-Object * -ExcludeProperty PS* when you want a clean table.

Reading HKLM: keys needs administrator rights for protected areas such as SOFTWARE\Microsoft\Windows\CurrentVersion\Run and the SAM hive. A read that silently returns nothing is usually a permissions problem, not an empty key.

Write registry values with Set-ItemProperty

List registry subkeys with Get-ChildItem

Updated 25 October 2026. Browser outputs are fictional; check the installed module help for your environment.

Recap

Get-ItemProperty Use Get-ItemProperty to read registry values from a key — or extended properties of files and folders — without opening regedit.

Next: Set Itemproperty
Genie guideGet-ItemProperty

Get-ItemProperty reads the values stored under a registry key: installed software, Windows settings, and application configuration. Learn how to read one value, all values, and how to handle missing keys. The console below is pre-loaded — run it, then change a value and run it again.