Windows

reg

CautionRegistry from the CLI

reg query <key>

Query/add/delete/export registry keys. Always export a backup before modifying.

Examples

  • reg export HKLM\SOFTWARE\App app-backup.regBack up before editing
  • reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductNameRead OS name from registry

Syntax

reg [query|add|delete|export] <key> [...]

Before you run it

Wrong deletions can break Windows.

Related commands

  • setxSet env vars permanently
  • bcdeditBoot configuration data

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