操纵注册表的命令行工具Reg.exe

修改一台机器的注册表可以通过在运行中输入regedit来开启注册表编辑器, 在一个窗口中进行操作.

如果要修改多台机器的注册表, 命令行工具reg.exe就要比窗体应用程序高效得多.

REG的帮助信息

REG Operation [Parameter List]

  Operation  [ QUERY   | ADD    | DELETE  | COPY    |
               SAVE    | LOAD   | UNLOAD  | RESTORE |
               COMPARE | EXPORT | IMPORT  | FLAGS ]

Return Code: (Except for REG COMPARE)

  0 - Successful
  1 - Failed

For help on a specific operation type:

  REG Operation /?

Examples:

  REG QUERY /?
  REG ADD /?
  REG DELETE /?
  REG COPY /?
  REG SAVE /?
  REG RESTORE /?
  REG LOAD /?
  REG UNLOAD /?
  REG COMPARE /?
  REG EXPORT /?
  REG IMPORT /?
  REG FLAGS /?

一个添加注册表键值的例子:

reg.exe add hklm\system\currentcontrolset\services\webclient\parameters /v AuthForwardServerList /t REG_MULTI_SZ /d http://*.abcdef.com

 

http://support.microsoft.com/kb/943280

http://www.instant-registry-fixes.org/how-to-use-regexe-to-edit-windows-registry/

原文地址:https://www.cnblogs.com/awpatp/p/1833273.html