I want to take backup of a particular registry value and also need to restore the same with its default permissions(original permission). But all these I need to do with command prompt as I have created a batch file to modify registry.
Can some one suggest how to export the particular registry value with permission in .reg file.
I tried a command to export the value
REG EXPORT HKLM\Software\agent d:\agent.reg
this is working fine but when I tried on some other values like (the value name having space in between "New Key Test")
REG EXPORT HKLM\Software\New Key Test d:\agent.reg
It gives me an error
Error: Too many command-line parameters
Please help me