Are you under the assumption that the Interactive Client Process script can function like PsExec, or do you understand that the code can only be used to "impersonate" a local user account, executing programs locally?tatanas wrote:I just want to do the same as psexec.
PsExec executes processes on a remote system redirecting output to the local system.
LogonUserW function
Microsoft wrote:The LogonUser function attempts to log a user on to the local computer. The local computer is the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer.