Script to add registry key/value not working
I am trying to push a registry key and value to some test machines. I have created a script with several "Tasks" using the built-in option to "Add a new step" and "Set a registry key.." and "Set a registry value..."
Set “HKLM\SOFTWARE\Microsoft\Cryptography\Wintrust\Config!EnableCertPaddingCheck” to “0x00000001”
Set “HKLM\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config!EnableCertPaddingCheck” to “0x00000001”.
The *second* command works. It creates the key and value under the Wow6432Node hive.
The *first" command does not work. It will not create the key/value under the Microsoft hive.
Any ideas? I have also tried creating the the path one key at a time, and then setting the value like this:
Set “HKLM\SOFTWARE\Microsoft\Cryptography\Wintrust\Config!EnableCertPaddingCheck” to “0x00000001”.
That does not work, either.
Just had the EXACT same issue but we are adding scripts via simple bat file with "reg add" command(s)
Check this thread:
I added /reg:64 at the end of the command and it works. The Wow64 path did not need it but "HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Wintrust\Config" did.
Hope this helps!