Share via


batch file that exports registry key

Question

Friday, August 5, 2016 8:02 PM

Hi, 

Does anyone have a batch file that can export a registry key ?

I've tried this : 

REGEDIT /E d:\path\filename.REG "HKEY_XXXX\Blah Key"

but it does not work for me.

I appreciate your help .

Thanks

All replies (5)

Friday, August 5, 2016 8:07 PM ✅Answered

Try this...

reg export "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer" "C:\Temp\My_Registry_Key.reg"

hth

This posting is provided AS IS without warranty of any kind


Friday, August 5, 2016 8:12 PM

neither of these are PowerShell scripts.

\(ツ)_/


Friday, August 5, 2016 8:13 PM

THANKS MAN!


Friday, August 5, 2016 8:14 PM

Yes i know... but he asked for a batch file ;)

Wrong place to ask this, but he have his answer

This posting is provided AS IS without warranty of any kind


Friday, August 5, 2016 8:32 PM

PowerShell is not a batch file.

\(ツ)_/