Page 1 of 1 1
Topic Options
#112100 - 2004-01-20 07:21 PM KiXtart working well, with a few exceptions.
justinm101 Offline
Fresh Scripter

Registered: 2004-01-20
Posts: 5
I've been using KiXtart for about 6 or 7 months for drive mapping, and it's doing the job. The only problem is that for some users they need to login 2 or 3 times for it to work. The problem occurs on 1 windows 2000 and one windows XP box (there may be more, but some users don't like complaining). Heres my enviroment and script info:

Windows 2000 domain with 2000 pro SP3 and XP SP1 clients.

I use group policy. The policy i've set is at the domain level and it uses the following script for logons:

logon.bat

Code:

echo %0 | find """" > nul
if errorlevel 1 goto NOQUOTES
if errorlevel 0 goto HASQUOTE

:NOQUOTES
set PERCENT0=%0
goto CONTINUE

:HASQUOTE
set PERCENT0=%~0
goto CONTINUE

:CONTINUE
%0\..\kix32 %0\..\logon.kix



As you can see, logon.bat calls logon.kix.
Code:
 
IF INGROUP("GDPLCA-payroll")
use s: /delete /persistent
use S: "\\vnsv20007\payroll"
if @error <> 0
? "Error: " + @error + " " + @serror
endif
ELSE
? "Ingroup returned false."
ENDIF

IF INGROUP("Domain Users")
use g: /delete /persistent
use g: "\\vnsv20007\server"
if @error <> 0
? "Error: " + @error + " " + @serror
endif
ELSE
? "Ingroup returned false."
ENDIF

IF INGROUP("DPRLCA-accpac")
use p: /delete /persistent
use p: "\\vnsv20007\accpac"
if @error <> 0
? "Error: " + @error + " " + @serror
endif
ELSE
? "Ingroup returned false."
ENDIF

IF INGROUP("DPRLCA-FinanceShare")
use f: /delete /persistent
use f: "\\vnsv20007\finance"
if @error <> 0
? "Error: " + @error + " " + @serror
endif
ELSE
? "Ingroup returned false."
ENDIF

IF INGROUP("Domain Admins")
use i: /delete /persistent
use i: "\\vnsv20002\DFSROOT"
if @error <> 0
? "Error: " + @error + " " + @serror
endif
ELSE
? "Ingroup returned false."
ENDIF



If anyone has any input please let me know. Thanks for taking the time to read this.

Justin


Top
#112101 - 2004-01-20 07:39 PM Re: KiXtart working well, with a few exceptions.
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Log the logins to a central location when the login script generates an error.
_________________________
There are two types of vessels, submarines and targets.

Top
#112102 - 2004-01-20 08:21 PM Re: KiXtart working well, with a few exceptions.
justinm101 Offline
Fresh Scripter

Registered: 2004-01-20
Posts: 5
Stupid question- can I see the code that does that? I looked through the manual but they only describe debug mode...
Top
#112103 - 2004-01-20 09:05 PM Re: KiXtart working well, with a few exceptions.
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Quote:

some users they need to login 2 or 3 times for it to work.




Silly question, but is the script FAILING or NOT RUNNING? If it is Not Running, do you have multiple domain controllers? Is replication properly configured and enabled?

There are several articles here and elsewhere on setting that up if you need to.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#112104 - 2004-01-20 09:18 PM Re: KiXtart working well, with a few exceptions.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

The only problem is that for some users they need to login 2 or 3 times



...because you call it as a GPO script, if computers have not yet received the GPO, it may not happen until the next time. Once they have the GPO, it should work on every logon.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#112105 - 2004-01-20 09:49 PM Re: KiXtart working well, with a few exceptions.
justinm101 Offline
Fresh Scripter

Registered: 2004-01-20
Posts: 5
The GPO has been set up for months. How could they not have it? Could it be because they are logging on before the GPO has been fully refreshed?

There are 2 domain controllers, and the two netlogon shares have all the required files.

Top
#112106 - 2004-01-20 09:53 PM Re: KiXtart working well, with a few exceptions.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Unless you are making some special calls, GPOs do not run from \NetLogon. If your GPO scripts do not run everytime then you have some sort of network configuration or timing problem.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#112107 - 2004-01-20 10:01 PM Re: KiXtart working well, with a few exceptions.
justinm101 Offline
Fresh Scripter

Registered: 2004-01-20
Posts: 5
I see what you're saying. It's possible that this user isn't getting the GPO- i could test this by waiting until the next time the logon script doesn't run, then see if "log out" is on the start menu since the GPO adds that. (also if the preference is there to enable the log off button on the start menu i know the GPO didn't run because the GPO would have taken that off.)..

So if all of this is true then I wonder how I could solve this problem of GPO's not always running. This GPO is never really edited. I just set it up when we created the 2000 domain.

Top
#112108 - 2004-01-20 10:05 PM Re: KiXtart working well, with a few exceptions.
justinm101 Offline
Fresh Scripter

Registered: 2004-01-20
Posts: 5
FYI- the GPO doesn't run from netlogon, but the logon script does.
Top
#112109 - 2004-01-21 08:02 AM Re: KiXtart working well, with a few exceptions.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw, on such client w2k try updating to sp4.
even though I don't have policies or even AD I still get with every client about 10 minute "setting basic policy" screen when policy hasn't been aplied for a day or so.
obviously, I have tweaked that in registry... f MS.

but anyways, that update might help you...
_________________________
!

download KiXnet

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 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.056 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