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 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