如何使用命令行将特定注册表项导出到文本文件

如何使用命令行将特定注册表项导出到文本文件

如何使用命令行将注册表中的特定值导出到文本文件?

例如,我想导出Hkey_local_Machine\Software\mcafee到 C: 中的文本文件。我只需要密钥 - 仅此而已。

我尝试过reg export– 它提供了一切,但我只需要特定事物的关键。

答案1

尝试这个:

reg export Hkey_local_Machine\Software\mcafee C:\export.txt

这将根据 Windows REG 格式导出注册表值。

答案2

您可以将特定的注册表值导出到文本文件setx 命令 从那里复制/粘贴:

SetX _TZone /k HKLM\System\CurrentControlSet\Control\TimeZoneInformation\StandardName
>Tzone.txt echo %_TZone%


上面的另一种方法是将其写入登记使用上述答案中的方法文件:

REG EXPORT HKLM\System\CurrentControlSet\Control\TimeZoneInformation\StandardName C:\Windows\Temp\Tzone.reg

reg 文件可以打开进行读/写,检查这里格式。

答案3

reg 导出 Hkey_local_Machine\Software\mcafee\key C:\export.txt && 类型 C:\export.txt | findstr /i “key”

答案4

在输入操作系统迅速的 :

reg export HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall test.txt && type test.txt | findstr /i "DisplayName" > list.txt | notepad list.txt

相关内容