Hi, I'm hoping some of you will be able to help me out. I'm attempting to create a batch (or .reg if possible) file that will modify a handful of keys in the registry.
Here's one I'm working on:
reg add \HKLM\SOFTWARE\Microsoft\Ole /v EnableDCOM /t REG_SZ /d N
When I run this as a .bat, I get this error:
"Error: Invalid Key Name"
When I change the extension to a .reg and run it, I get this error:
"The specified file is not a registy script. You can only import binary registry files from within the registry editor."
I've looked at the MS help page and I think I've done it how they've explained to.
What all am I doing wrong? I'm not wholly opposed to contrasting methods either, so any suggestions are more than welcome. I'm just looking for the same outcome; automation through a batch file, whether the filename be .reg or .bat. :D
Thanks in advance.
