> For the complete documentation index, see [llms.txt](https://infra.newerasec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infra.newerasec.com/infrastructure-testing/privilege-esclation/situational-awareness/windows/registry.md).

# Registry

### Read Registry values

**Powershell**:&#x20;

`Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion`&#x20;

&#x20;Or

`cd HKCU:` or `cd HKLM:`\
**CMD**:&#x20;

`REG QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows\`&#x20;
