Hi, I have the following script that works but I don't want it to copy psexec.exe to C:\Windows\SysWOW64. What's the best way to get it to actually copy to C:\Windows\System32? Thanks for any help in advance.
I had this exact same problem a couple week ago and found the solution. In order to write to the Systme32 folder from a 32-bit app, you need to use the built-in (somewhat undocumented) alias for System32 which is Sysnative.