Hi Gordon,
Thanks for the reply. I went back and took your advise and tried to be more specific to where I wanted the keys to go. There is an entry for the standard registry as well as the Wow6432 node.
@echo off
reg add "HKLM\software\microsoft\powershell\1\shellids\microsoft.powershell" /f /v "Path" /d "c:\windows\system32\windowspowershell\v1.0\powershell.exe"
reg add "HKLM\software\microsoft\powershell\1\shellids\microsoft.powershell" /f /v "ExecutionPolicy" /d "Unrestricted"
reg add "HKLM\software\wow6432Node\microsoft\powershell\1\shellids\microsoft.powershell" /f /v "Path" /d "c:\windows\syswow64\windowspowershell\v1.0\powershell.exe"
reg add "HKLM\software\wow6432Node\microsoft\powershell\1\shellids\microsoft.powershell" /f /v "ExecutionPolicy" /d "Unrestricted"
It seems when I run this bat file I am able to get the Wow node to change but not the standard 64 bit registry. Any idea why only one of the registry locations will change?