#31050 - 2002-10-21 07:02 AM
I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
Help me.. pls I got error when I start to run Kix script..
Error is.. Can't sync clock with PDC..
I don't know why.. My Server is Windows 2000 Server and Client is Windows 2000 Pro.
PLogon.bat is store in User Profile.. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ECHO off IF "%OS%" == "Windows_NT" goto NT_OS CALL \\bstl_svr1\netlogon\kix32 PLogon9x.kix EXIT :NT_OS call \\bstl_svr1\netlogon\kix32 \\bstl_svr1\netlogon\PLogonNT.kix EXIT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
PLogon9x.kix (for windows 9x) ********************************************** ? "Setting Win9x variables...please, wait." ; SHELL "winset.exe USERNAME=''" SHELL "winset.exe USERNAME=@USERID" ; SHELL "Winset.exe ADDRESS=@ADDRESS" ; SHELL "Winset.exe COMPUTER=@WKSTA" ; SHELL "Winset.exe DOMAIN=@DOMAIN" ; SHELL "Winset.exe COMMENT=@COMMENT" ; SHELL "Winset.exe FULLNAME=@FULLNAME" ; SHELL "Winset.exe HOMEDIR=@HOMEDIR" ; SHELL "Winset.exe HOMESHR=@HOMESHR" ; SHELL "Winset.exe LSERVER=@LSERVER" ; SHELL "Winset.exe PRIV=@PRIV" ? "Done."
? "Map Network drive (User)..." SHELL "net use * \\bstl_svr3\@USERID$ /no"
IF Ingroup ("MK11") = 1 shell "net use * \\bstl_svr3\DocMK11$ /no" shell "net use * \\bstl_svr3\ShareDoc /no" shell "\\bstl_svr1\ofcscan\autopcc.exe" ENDIF exit **********************************************
PLogonNT.kix (for Windows NT,xp, 2000) &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& shell "net use * \\bstl_svr3\%username%$ /Persistent:no"
IF Ingroup ("MK11") = 1 shell "net use * \\bstl_svr3\DocMK11$ /Persistent:no" shell "\\bstl_svr1\ofcscan\autopcc.exe" ENDIF &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
I got error when user logon to domain and run scrip PLogon.bat at first time.. Error is Server can't sync clock with PDC...
If I wait a few minute.. and run Plogon.bat again, It works.. What happend?
My Server service: Kxrpc is started, Windows Time is started.
Help me please... Pech
|
Top
|
|
|
|
#31051 - 2002-10-21 07:12 AM
Re: I got error when I run kix script at first time.
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Pech,
What version of KiXtart are you running?
Where are you setting time in this code?
If you have upgraded your clients to version 4.x, did you get all DLLs, EXEs, etc.?
Why are you using (for example) -
code:
SHELL "net use * \\bstl_svr3\@USERID$ /no"
??
Why not use instead -
code:
USE F: "\\bstl_svr3\@USERID$"
Thanks,
Kent
|
Top
|
|
|
|
#31053 - 2002-10-21 10:45 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
I have not a problem with my script. (shell "net use * \\bstl_svr3\%username%$ /Persistent:no") <-- no problem.
But I have a problem when I start run script at first time. If I wait a few minutes and run script again, It works.
My error is : Server can't sync clock with PDC.
Kixtart : 4.11
Please tell me more Pech Prevoiusly I never got any problem. After
|
Top
|
|
|
|
#31055 - 2002-10-22 06:01 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
To.Jens
How I can config The Windows Time Server.. It's problem with Client are Windows XP, NT, 2000.
I don't why? If I wait a few minutes and run PLogon.bat again It's work.. But at first login failed..
Pech
|
Top
|
|
|
|
#31056 - 2002-10-22 06:52 AM
Re: I got error when I run kix script at first time.
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
|
Top
|
|
|
|
#31057 - 2002-10-29 10:10 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
Kent, I visit the link (microsoft), but I try to do with my server (windows 2000), but cann't solved my problem, First login failed.. with Error 2457 "Server clock cannot sync with PDC). After that I've to wait a few minutes and run script by manual, It works!!! I don't khow why not?
Help PEch
|
Top
|
|
|
|
#31059 - 2002-10-29 11:09 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
I didn't config the time service. Time Service is started.. I never get right to any person to sync clock.
How I can disable automatic sync clock with Server.
When I use Shell command ,,, an error has occured.. If I use command : use * \\domain\share This command doesn't do anything.
Pech
|
Top
|
|
|
|
#31061 - 2002-10-30 08:04 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
Now I can solved the windows time problem, because I used command shell.. I think it's not support with Kix.
But I have a new problem. First logon it has not no error, but logon script use f: "\\domain\share" It's not do anything.
If I wait a few minutes and run that's script by manual, It work!.
Please advice me. Pech
|
Top
|
|
|
|
#31063 - 2002-10-31 03:01 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
Logon.bat ************************************************* ECHO ON set path=c:\winnt\system32;\\bstl_svr1\netlogon; IF "%OS%" == "Windows_NT" goto NT_OS CALL \\bstl_svr1\netlogon\kix32.exe Logon9x.bat EXIT
:NT_OS call \\bstl_svr1\netlogon\kix32.exe \\bstl_svr1\netlogon\LogonNT.kix EXIT *************************************************
Logon9x.bat ------------------------------------------------- ? "Setting Win9x variables...please, wait." SHELL "winset.exe USERNAME=@USERID" ? "Done." ? "Map Network drive (User)..." SHELL "net use * \\bstl_svr3\@USERID$ /no"
IF Ingroup ("MK11") = 1 shell "net use * \\bstl_svr3\DocMK11$ /no" shell "net use * \\bstl_svr3\ShareDoc /no" shell "\\bstl_svr1\ofcscan\autopcc.exe" ENDIF ------------------------------------------------
LogonNT.kix ------------------------------------------------ use "*" /delete
use h: "\\bstl_svr3\%username%$"
IF Ingroup ("MK11") = 1 use i: "\\bstl_svr3\DocMK11$" run "\\bstl_svr1\ofcscan\autopcc.exe" ENDIF -----------------------------------------------
It has problem with LogonNT.kix only (Windows NT,2000,xp) When user start to login. (LogonNT.kix)command map drive (use) does not do anything, but run command done only.If user with a few minutes and run Script (Longon.bat-> LogonNT.kix) by manual it work.
Why not?
Pech
|
Top
|
|
|
|
#31065 - 2002-10-31 03:21 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
No problem with Logon.bat --> call Logon9x.bat
But I have only problem with LogonNT.kix Command USE does not do anything.. Command RUN done.
This problem has a first logon only. If I wait a few minutes and run script (Logon.bat) by manual It work!
Pech
|
Top
|
|
|
|
#31067 - 2002-10-31 03:28 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
If run script by manual in NETLOGON. It works. But I have to wait a few min.
Pech
|
Top
|
|
|
|
#31069 - 2002-10-31 03:42 AM
Re: I got error when I run kix script at first time.
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
No meaning... Same like me. Cann't solved the problem, If I wait a few min it works.
Pech
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 248 anonymous users online.
|
|
|