Page 1 of 1 1
Topic Options
#131455 - 2004-12-16 05:56 PM Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
Let me explain. The problem I am having is not necessarily with the script itself, but the fact that it does not run for some users. The script itself works fine, but some users are having problems with the script running at all. It is probably some type of networking issue, but I figured someone here may have seen it before and could give a suggestion. This is on a Windows 2000 network with XP and 2000 professional clients. I've tried implementing the script both through Group Policy and in the user settings in Active Directory. It will run fine one day, but then not run at all the next unless done manually through the command prompt. There are no error messages, it just simply doesn't run. It happens on PCs running both XP and 2000. Any ideas??????????
Top
#131456 - 2004-12-16 09:55 PM Re: Script does not run
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
do you have multiple domain controllers?

if so, double check your file replication for the netlogon folder.

Top
#131457 - 2004-12-16 10:10 PM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
Yes we do, and the script is being replicated.
Top
#131458 - 2004-12-16 10:15 PM Re: Script does not run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
have you checked the logonserver variable on the failing machines?
does this occur on multiple servers or just some of them?
_________________________
!

download KiXnet

Top
#131459 - 2004-12-16 10:19 PM Re: Script does not run
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Mad Cow,
How are you calling your logon script, directly from the users profile or thru a BATch file? Show us what you use.

How random is this? Random across all machines or just certain ones? Are there DCs that are not well connected or is this a small LAN?

If it were just XP, I would suspect Fast Logon Optimization but you claim 2K boxes also skip.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#131460 - 2004-12-16 10:31 PM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
I've been trying to remember just how to check who my logon server is. Isn't there a command for this? There are 2 DCs, so seeing which one is logging the PCs onto the network would help.
Top
#131461 - 2004-12-16 10:43 PM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
1st, who is Mad Cow?

2nd Origianlly I called the script from the user profile (putting kix32 ntlogon.kix in the profile). Then I tried creating a batch file called logon.bat that called the kix script (\\server\netlogon\kix32.exe \\server\netlogon\ntlogon.kix). I put the logon.bat in the user profile in AD.

Next, I tried using a Group Policy to call the script. I tried calling both the ntlogon.kix settings and the logon.bat

All attempts yielded the same results. It seems as though there are certain users that experience the problem more often, but they may just notice it more than others.

As for the randomness, I have a user that didn't have the script run for 3 days straight and then it ran for her today. Another user had it run for the past couple of days but didn't run today. Sometimes it will run for them on their first logon, but then not run if they reboot during the day. There is no pattern to what is happening.


Edited by CJD (2004-12-16 10:44 PM)

Top
#131462 - 2004-12-16 11:15 PM Re: Script does not run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
start menu -> run -> cmd -> echo %logonserver%
_________________________
!

download KiXnet

Top
#131463 - 2004-12-16 11:16 PM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
Ok, I went around and ran set logonserver on a few of the PCs that have the problem most often. I was hoping to find them all having the same logonserver, but they didn't. I'm going to check them again tomorrow and see who did and didn't have the script run and see which logon server they used.

Thanks for everyone's input, this problem is driving me mad!

Top
#131464 - 2004-12-16 11:35 PM Re: Script does not run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
when you say there are no errors...
are you meaning no errors on screen?
is there anything in eventlog?
_________________________
!

download KiXnet

Top
#131465 - 2004-12-16 11:42 PM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
No errors on screen or event log. It's like the user gets logged on with a local account. However, when I had the script set to run from the Group Policy the policy WOULD get pushed down to the PC. I verified this by using the gpresult tool that show which policies have been applied to a PC. So even though the PC recognized the Group Policy from AD, it still didn't run the script, whereas others did.
Top
#131466 - 2004-12-16 11:42 PM Re: Script does not run
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Mad Cow AKA Bovine Spongiform Encephalopathy (BSE) and Creutzfeldt-Jakob Disease (CJD)

It sounds like Fast Logon Optimization could be a culprit but if W2K machines are affected then it is likely some other network issue. My guess is users are logging on with cached creds sometimes. I would examine the network closely as well as the network settings on the clients. You may have to optimize protocols and provider order. You may not have AD setup correctly for site awareness. You did not say how your network is laid out. Do you have DCs that are not well connected or all they all on one LAN subnet?

You can type SET at a CMD prompt to see what LOGONSERVER is.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#131467 - 2004-12-16 11:45 PM Re: Script does not run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
is your network using dhcp?
_________________________
!

download KiXnet

Top
#131468 - 2004-12-17 12:06 AM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
I agree that it seems like they are getting logged in withed cached credentials, BUT as you can see in my above post the PC did recognize the Group Policy change I made but didn't run the script. Every theory I have come up with has been blown out of the water.

And yes, both DCs are on the same subnet.

Top
#131469 - 2004-12-17 12:07 AM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
Yes, and it seems to be working fine. None of the PCs are having problems getting an IP address or DNS settings.
Top
#131470 - 2004-12-17 12:12 AM Re: Script does not run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
GPO can be loaded later by the computer.
say, if you have problems with dhcp or dns, it can stop logonscript from running but be that much working that after minor delay, the client gets it's network running and policy gets there and so on.
that would be like the situation I had before...
_________________________
!

download KiXnet

Top
#131471 - 2004-12-17 03:38 PM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
I guess it could be possible we are having dhcp or dns issues, but there are no other problems that would suggest that.

You say it sounds like a situation you had before, what did you do to fix it?

Top
#131472 - 2004-12-17 03:44 PM Re: Script does not run
CJD Offline
Fresh Scripter

Registered: 2004-11-02
Posts: 11
Someone on a Microsoft forum suggested I put Wscript.sleep 60000 in my script to give Windows time to startup and activate the desktop before running the script. Is this o.k. to put in a Kix script, and if so how would I implement it?


I really don't know if this will help though, b/c like I said the script never runs so I don't see how adding more code to the script would help. BUT at this point I'm willing to try anything.

Top
#131473 - 2004-12-17 05:15 PM Re: Script does not run
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
well if you're going to try that then you would use

sleep 60

for kix.

_________________________
Eric

Top
#131474 - 2004-12-17 05:37 PM Re: Script does not run
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
...but as you say, it makes no sense if the script does not run at all. Put some code both in your logon.bat, and in your KiX script that writes %COMPUTERNAME%, %LOGONSERVER%, and the date/time to a logfile.

Have you tried the GPOs for RunLogonScriptSync and/or for the Fast Logon Optimization? No clue why the MS forum would even suggest delaying the script until the desktop loads when many people do just the opposite with RunLogonScriptSync.

You really need to look into your AD design as I fell the problem lies there. Make sure the DNS SRV records are there and that DNS is working properly. Also make sure that each DC has a GC and that your sites are properly setup.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 363 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.111 seconds in which 0.062 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