Problem
Software distribution task for a windows action package or batch file package to edit the registry will show as successful, but the change in the registry was not applied.
Cause
The value is being added to the key path under WOW6432NODE due to the task running in 32-bit mode by default.
Solution
Change the Architecture options setting in distribution package properties to "System Architecture"