SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
RunAsUser fails - exit code = 1314

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
RunAsUser fails - exit code = 1314
Author Message
Greg Morris



Joined: 24 May 2002
Posts: 26

Post RunAsUser fails - exit code = 1314 Reply with quote

My JAL RunAsUser() is failing. A ProcessGetExitCode returns value 1314. A Run() on the same command string works. I verified my RunAsUser userid/pwd/domain are good by using them with Win2K's RunAs to successfully launch the same command string. I have tried RunAsUser() while 24x7 is running as a service and as an application, both without success.

Thank you for any help,
Greg

Thu Jun 27, 2002 5:06 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: RunAsUser fails - exit code = 1314 Reply with quote

Does the RunAsUser() causes an error in script, or ProcessGetExitCode() returns code 1314 if called after RunAsUser()?

: My JAL RunAsUser() is failing. A ProcessGetExitCode returns value 1314. A
: Run() on the same command string works. I verified my RunAsUser
: userid/pwd/domain are good by using them with Win2K's RunAs to
: successfully launch the same command string. I have tried RunAsUser()
: while 24x7 is running as a service and as an application, both without
: success.

: Thank you for any help,
: Greg

Thu Jun 27, 2002 5:14 pm View user's profile Send private message
Greg Morris



Joined: 24 May 2002
Posts: 26

Post Re: RunAsUser fails - exit code = 1314 Reply with quote

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()?

Thu Jun 27, 2002 5:36 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: RunAsUser fails - exit code = 1314 Reply with quote

Please check that you have required prvileges as described in the 24x7 on-line help. Different operation systems (NT/2000/XP) require different set of privileges. Open up the help file; type in the index "Run As User" and then go to the "Run As User" topic to see the exact description of what is needed for your system.

: 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?

Thu Jun 27, 2002 5:50 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.