大网数据广告活动
Windows排障命令

reg commands

· 52CE 我爱测

Reference article for the reg commands, which perform operations on registry subkey information and values in registry entries.

Performs operations on registry subkey information and values in registry entries.

Some operations enable you to view or configure registry entries on local or remote computers, while others allow you to configure only local computers. Using reg to configure the registry of remote computers limits the parameters that you can use in some operations. Check the syntax and parameters for each operation to verify that they can be used on remote computers.

Caution: Don't edit the registry directly unless you have no alternative. The registry editor bypasses standard safeguards, allowing settings that can degrade performance, damage your system, or even require you to reinstall Windows. You can safely alter most registry settings by using the programs in Control Panel or Microsoft Management Console (MMC). If you must edit the registry directly, back it up first.

Syntax

reg add
reg compare
reg copy
reg delete
reg export
reg import
reg load
reg query
reg restore
reg save
reg unload

Parameters

Parameter Description
reg add Adds a new subkey or entry to the registry.
reg compare Compares specified registry subkeys or entries.
reg copy Copies a registry entry to a specified location on the local or remote computer.
reg delete Deletes a subkey or entries from the registry.
reg export Copies the specified subkeys, entries, and values of the local computer into a file for transfer to other servers.
reg import Copies the contents of a file that contains exported registry subkeys, entries, and values into the registry of the local computer.
reg load Writes saved subkeys and entries into a different subkey in the registry.
reg query Returns a list of the next tier of subkeys and entries that are located under a specified subkey in the registry.
reg restore Writes saved subkeys and entries back to the registry.
reg save Saves a copy of specified subkeys, entries, and values of the registry in a specified file.
reg unload Removes a section of the registry that was loaded using the reg load operation.

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。