SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
RunAsUserAndWait (JAL)

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
RunAsUserAndWait (JAL)
Author Message
Junk



Joined: 31 Jan 2002
Posts: 9

Post RunAsUserAndWait (JAL) Reply with quote

Hi,

i've got a problem with this command. My 24x7 Scheduler 3.2, running on a W2K server, allways gives me an error by using this command.

Logon failed. Returncode 1314.......

I tried it in different ways like that:

RunAsUserAndWait ("C:\test.bat","",0,"UsernameWithAdminrights","password",".",processid)
RunAsUserAndWait ("C:\test.bat","",0,"UsernamewithAdminRights","password","ntdomain",processid)

The same with the RunAsUser - Command
Did I use wrong parameters?


Wed Feb 20, 2002 11:47 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: RunAsUserAndWait (JAL) Reply with quote

The problem is in "C:\test.bat". Change it to "C:\\test.bat". Please see FAQ section in on-line help for details.

: Hi,

: i've got a problem with this command. My 24x7 Scheduler 3.2, running on a W2K
: server, allways gives me an error by using this command.

: Logon failed. Returncode 1314.......

: I tried it in different ways like that: RunAsUserAndWait
: ("C:\test.bat","",0,"UsernameWithAdminrights","password",".",processid)
: RunAsUserAndWait
: ("C:\test.bat","",0,"UsernamewithAdminRights","password","ntdomain",processid)

: The same with the RunAsUser - Command
: Did I use wrong parameters?

Wed Feb 20, 2002 12:06 pm View user's profile Send private message
Junk



Joined: 31 Jan 2002
Posts: 9

Post Re: RunAsUserAndWait (JAL) Reply with quote

: The problem is in "C:\test.bat". Change it to
: "C:\\test.bat". Please see FAQ section in on-line help for
: details.

hmmm.. sorry.. I wrote a wrong statement. My script runs allready with two backslashes. Otherwise he would tell me, that he can't find the file. But he tells me, that the client hasn't got one right to excecute this job. The user I tried, has got administrative rights.

Thu Feb 21, 2002 3:58 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: RunAsUserAndWait (JAL) Reply with quote

Administrator by default does NOT have "Log on as batch job" priviliges. But using administrative account you have privileges to change own privileges (edit Local Security Settings) and grant "batch job" to yourself and to the account that you want to use with RunAsUser.

: hmmm.. sorry.. I wrote a wrong statement. My script runs allready with two
: backslashes. Otherwise he would tell me, that he can't find the file. But
: he tells me, that the client hasn't got one right to excecute this job.
: The user I tried, has got administrative rights.

Thu Feb 21, 2002 7:48 am View user's profile Send private message
Junk



Joined: 31 Jan 2002
Posts: 9

Post Re: RunAsUserAndWait (JAL) Reply with quote

: Administrator by default does NOT have "Log on as batch job"
: priviliges. But using administrative account you have privileges to change
: own privileges (edit Local Security Settings) and grant "batch
: job" to yourself and to the account that you want to use with
: RunAsUser.

It still doesn't work. Can You give me an example for this command?

Thu Feb 21, 2002 10:48 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: RunAsUserAndWait (JAL) Reply with quote

Sorry, what does not work? Do you get an error message? If yes, what it is?

For examples please see on-line help.

If you get an error but other than insuffient privileges, please post your code here.

: It still doesn't work. Can You give me an example for this command?

Fri Mar 01, 2002 2:04 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.