2019-03-11 08:13:14 +00:00
|
|
|
|
# reg add
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 将新的键值添加到注册表中。
|
2022-10-04 16:06:23 +01:00
|
|
|
|
> 更多信息:<https://learn.microsoft.com/windows-server/administration/windows-commands/reg-add>.
|
2019-03-11 08:13:14 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 添加一个新的注册表键:
|
2019-03-11 08:13:14 +00:00
|
|
|
|
|
|
|
|
|
`reg add {{键名}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 在指定的键下添加新值:
|
2019-03-11 08:13:14 +00:00
|
|
|
|
|
|
|
|
|
`reg add {{键名}} /v {{值}}`
|
|
|
|
|
|
2022-03-27 06:25:15 +01:00
|
|
|
|
- Add a new value with specific data:
|
2019-03-11 08:13:14 +00:00
|
|
|
|
|
|
|
|
|
`reg add {{键名}} /d {{数据}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 向具有特定数据类型的键添加新值:
|
2019-03-11 08:13:14 +00:00
|
|
|
|
|
|
|
|
|
`reg add {{键名}} /t {{类型}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 在没有提示的情况下强制覆盖现有的注册表值:
|
2019-03-11 08:13:14 +00:00
|
|
|
|
|
|
|
|
|
`reg add {{键名}} /f`
|