I am using psexec to start an executable in a remote system. The remote system is 64 bit while the exe pushed using psexec is 32 bit.
While running "psexec", I am providing the admin credentials of the remote system and the remote process is created using those credentials itself.
The 32 bit exe , when run on the remote system , does some operations and then spawns another executable using ShellExecute.
I am finding that on windows 7 , ShellExecute returns error code 5 (i.e. SE_ERR_ACCESSDENIED). The entire process runs fine and ShellExecute succeeds when the target machine is XP.
Any ideas or workaround for the same? I tried initializing COM , but with no benefits. Please let me know if any further details/code is required.