Edit Registry Key via Batch File
Posted on 2016-09-02
I need to make a change in the registry, I have the new *.reg file but can't seem to get the correct syntax. I manually changed the key and exported the reg.key file.
I have tried the following to edit the key in my batch file:
reg add \\Server\Share\FixSvrName.reg
regedit.exe /s \\Server\Share\FixSvrName.reg
regedit.exe /s "\\Server\Share\FixSvrName.reg"
I need to change the Server name in 2 keys, the key is:
Name = ab 1
Type = REG_EXPAND_SZ
Data = \\Bad Server Name\Share
Date = Data = \\Bad Server Name\Share
Thanks in advance for the help.