Attempting to export remote registry hive with PowerShell

ⅰ亾dé卋堺 提交于 2019-12-06 22:36:26

Here's what I did instead:

reg copy \\CopyFromPC\HKLM\SOFTWARE\ODBC \\CopyToPC\HKLM\SOFTWARE\ODBC /s /f

I don't think "reg save" allows the remote portion. See below

• Reg Query allows checking a remote PC:

PS C:\Windows> reg query /? KeyName [\Machine]FullKey Machine - Name of remote machine, omitting defaults to the current machine. Only HKLM and HKU are available on remote machines

• Reg Save doesn say it allows saving from remote PC:

PS C:\Windows> reg save /?

REG SAVE KeyName FileName [/y]

KeyName ROOTKEY\SubKey ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] SubKey The full name of a registry key under the selected ROOTKEY.

FileName The name of the disk file to save. If no path is specified, the file is created in the current folder of the calling process.

/y Force overwriting the existing file without prompt.

Examples:

REG SAVE HKLM\Software\MyCo\MyApp AppBkUp.hiv Saves the hive MyApp to the file AppBkUp.hiv in the current folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!