Registry

Reg

Use the native reg command to interact with the Registry.

Tip

Any of the reg command can be done remotely by prepending \\[MachineName] before [KeyName]. This requires an admin-level SMB session.

Example: reg query \\DC01 [KeyName]

Read a reg key:

reg query [KeyName]

Export and import settings to and from a reg file:

reg export [KeyName] [filename.reg]
reg import [filename.reg]