windows - ShellExecute failing with access denied -
i using psexec start executable in remote system. remote system 64 bit while exe pushed using psexec 32 bit.
while running "psexec", providing admin credentials of remote system , remote process created using credentials itself.
the 32 bit exe , when run on remote system , operations , spawns executable using shellexecute.
i finding on windows 7 , shellexecute returns error code 5 (i.e. se_err_accessdenied). entire process runs fine , shellexecute succeeds when target machine xp.
any ideas or workaround same? tried initializing com , no benefits. please let me know if further details/code required.
i figured out problem , shellexecute trying execute program in share location. guess not able access share giving access denied. used createprocess() instead , made sure share connection made before trying execute process. worked!
Comments
Post a Comment