I’m trying to change a pre-existing registry key on Windows and nothing I have tried is working. First, I tried using the regset/regdelete commands, but nothing happened. The task sequence completed successfully, but the registry key’s value does not change.
I even tried with regset64 instead of regular regset. The target OS is Windows 10 x64. No luck. I created a batch file to do this interactively on Windows, which succeeded. I placed the batch file’s syntax into the task inside of a createfile block. Again, task sequence completes successfully, but doesn’t change the key’s value.
delete __createfile
delete regadd.cmd
createfile until EOF
Are you on 64 bit? HKLM\Software will be redirected to HKLM\Software\Wow6432Node when using regset. Use regset64 to write to the native 64 bit hive. Also the syntax you have is slightly wrong.