I have a task to change or add the registry value for that i have used the following two scripts, both are executing with out any error but the registry modification is not happening.
I have tried in windows xp and windows 2000 nodes. Kindly check and if any modification in the script.
One of the rules of the .reg file is that any \’s in the value field need to appear as double slashes, that is \. So if you were trying to assign the value SourcePath2 of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion to c:\I386, the command that you would define would look like this: