Both. With OnErrorResumeNext, ProcessGetExitCode() called after RunAsUser()returns code 1314. Without OnErrorResumeNext, I do get an error in the script, which is: "Logon failed. Return code: 1314 - A required privilege is not held by the client." I encountered this in some vbs code that uses a 3rd party ActiveX DLL to impersonate. After giving my userid the privilege "act as part of the operating system", things worked. That doesn't seem to be sufficient privilege for the JAL RunAsUser(). Any ideas? : Does the RunAsUser() causes an error in script, or ProcessGetExitCode() : returns code 1314 if called after RunAsUser()?
|