Page 1 of 1 1
Topic Options
#21348 - 2002-05-08 03:05 PM new user - NT application log question.
GJP Offline
Lurker

Registered: 2002-05-08
Posts: 3
Loc: Motorola GTSS, UK
hi all,

I've been using kixtart now for a couple of months, primarily to help me run a few tasks via the NT scheduler and a batch file.

I have a problem whereupon the two kix scripts, when run in the above scenario, create entries in the NT application log like so :

The description for Event ID ( 1312 ) in Source ( KIXTART ) could not be found. It contains the following insertion string(s): WkstaUserGetInfo failed Error : A specified logon session does not exist. It may already have
been terminated. (0x520/1312).

however running the batch file manually (which calls the two scripts), or either script from the cmd line, does not create log entries.

My guess is the the NT scheduler runs tasks using the NT system account ? - and this causes the error - the thing is the scripts otherwise operate correctly, but the log entries are a pain as the log fills up and starts
annoying users with the 'application log if full' message every hour or so - especially as it has the highest GUI priority and interrupts the applications that they are running at the time.

has anyone got any thoughts - apologies if this has been covered already - I did a search but no likely looking threads turned up.

cheers, Gary.

Top
#21349 - 2002-05-08 03:18 PM Re: new user - NT application log question.
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, the NT Scheduler runs under the SYSTEM account by default which does not have network access by default. I recommend to upgrade to the new Task Scheduler which enables you to run a specific task under any arbitrary user ID. You can also remotely schedule tasks with the ScheduleTask UDF.
Alternatively, you can run the NT Scheduler under a regular user acount, e.g. Administrator, by changing the startup parameters for the NT Scheduler service. This would also enable your scheudled scripts to access network resources although I do see it as a security risk to have the NT Scheduler service run under anything else than the SYSTEM account.
_________________________
There are two types of vessels, submarines and targets.

Top
#21350 - 2002-05-08 03:27 PM Re: new user - NT application log question.
GJP Offline
Lurker

Registered: 2002-05-08
Posts: 3
Loc: Motorola GTSS, UK
thanks - yes I just been and confirmed that very same thing by getting the scheduler to use a local admin account - sure enough the log entries disappear.

the 'new' scheduler you mention - is it part of SP6a or a separate upgrade ? - I'm currently using SP5 for all the boxes I have running these scripts.

Top
#21351 - 2002-05-08 03:58 PM Re: new user - NT application log question.
GJP Offline
Lurker

Registered: 2002-05-08
Posts: 3
Loc: Motorola GTSS, UK
ok no worries, I've sussed it out - thanks again.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 611 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.052 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org