Page 1 of 3 123>
Topic Options
#31050 - 02/10/21 07:02 AM I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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 - 02/10/21 07:12 AM Re: I got error when I run kix script at first time.
Kdyer Offline
KiX Supporter
*****

Registered: 01/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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#31052 - 02/10/21 07:41 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
pech, you should use the same topic and not start a new one and ask same question again once a week.

http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=1;t=005992

 
_________________________
!

download KiXnet

Top
#31053 - 02/10/21 10:45 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
#31054 - 02/10/21 03:07 PM Re: I got error when I run kix script at first time.
Sealeopard Offline
KiX Master
*****

Registered: 01/04/25
Posts: 11161
Loc: Boston, MA, USA
Pech: The 'no problem' is not an issue. An issue is that you should rather use the KiXtart-native USE statement than SHELLing out again. What's the point of using KiXtart if you do everything with non-KiXtart commands anyway.

You should also not hard-code the call to your login server, it is not considered 'best practice'.

Why do you manually sync the time if there's the build-in Time Server service? The recommended setup for Windows 2000/XP is to synchronize the time automatically through the time server. There is ABSOLUTELY NO NEED for ordinary users to manually sync time or even sync time through the login script because you will have to adjust security permissions to actually give ordinary users the right to change the system time.

Why do you want to make it more complicated if there's an easy solution?
_________________________
There are two types of vessels, submarines and targets.

Top
#31055 - 02/10/22 06:01 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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 - 02/10/22 06:52 AM Re: I got error when I run kix script at first time.
Kdyer Offline
KiX Supporter
*****

Registered: 01/01/03
Posts: 6241
Loc: Tigard, OR
Pech,

It looks like you have two things going on here..

Maybe a couple of Microsoft "Q" Articles to get you started:

Login Script -
A Logon Script Does Not Work If %0 or %0\..\ Calls Multiple Commands

Time Server Setup/Info -
How to Configure an Authoritative  Time Server in Windows 2000 (Q216734)

How Machines Determine the  Time Source  Server Using NET  TIME (Q156460)

"Could Not Locate a  Time Server" After Setting SNTP  Time Server Using NET  TIME Command (Q243574)

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#31057 - 02/10/29 10:10 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
#31058 - 02/10/29 10:18 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
eh, login failed?
if your login failes it can't actually be nothing related to time service.

anyway, does your w2k PDC have time service configured?

if you do not have w2k PDC it will not work with defaults.
_________________________
!

download KiXnet

Top
#31059 - 02/10/29 11:09 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
#31060 - 02/10/29 03:27 PM Re: I got error when I run kix script at first time.
Sealeopard Offline
KiX Master
*****

Registered: 01/04/25
Posts: 11161
Loc: Boston, MA, USA
Pech:

Please take a look a the required syntax for USe in the KiXtart Manual. your USE command has to look like this:
code:
use * '\\server\share'

Also, the Time Service is AFAIK required in an AD domain in order to successfully authenticate Kerberos passwords. The link provided to you do explain how to correctly set up the time service please do so.

Regular users do not require the right to change the system time, changing the system time would indicate malicious intent.

[ 01. November 2002, 14:46: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#31061 - 02/10/30 08:04 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
#31062 - 02/10/31 12:14 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
command shell?

we have no clue what you are talking about as you don't let us to see your current script.
this use line we have seen multiple times already and I say, I believe it has nothing to do with the actual problem.

first hit would be to know do you still have the bat calling kix as it can't run that way.
use these lines for nt/w2k/xp:
:NT_OS
kix32 PLogonNT.kix
EXIT
_________________________
!

download KiXnet

Top
#31063 - 02/10/31 03:01 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
#31064 - 02/10/31 03:05 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
I don't know about how it actually works but call is made for calling batch files.
so, first start by correcting your logon.bat:
Logon.bat
*************************************************
ECHO ON
set path=c:\winnt\system32;\\bstl_svr1\netlogon;
IF "%OS%" == "Windows_NT" goto NT_OS
z:\kix32.exe Logon9x.bat
EXIT

:NT_OS
kix32.exe LogonNT.kix
EXIT
*************************************************
_________________________
!

download KiXnet

Top
#31065 - 02/10/31 03:21 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
#31066 - 02/10/31 03:24 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
well, you say that it's failing first logon only.
nope, when you say that it runs manually after waiting five minutes, you say that it does not work at all in netlogon.
_________________________
!

download KiXnet

Top
#31067 - 02/10/31 03:28 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
#31068 - 02/10/31 03:29 AM Re: I got error when I run kix script at first time.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
also, does both use lines fail or only other one?

then you could try with this version and post it's givings:
code:
"nt logonscript"
? @kix
? @dos
? @ldrive

use "*" /delete
? "delete persistent mappings: " @serror

use h: "\\bstl_svr3\%username%$"
? "mapping h: to homeshare: " @serror

IF Ingroup ("MK11") = 1
use i: "\\bstl_svr3\DocMK11$"
? "mapping i: to groupshare: " @serror
shell "\\bstl_svr1\ofcscan\autopcc.exe"
ENDIF
? "logonscript ran"
?? "press any key to close window"
get $

waiting for reply. and please change at least that nt part of your logon.bat

[ 31. October 2002, 03:30: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#31069 - 02/10/31 03:42 AM Re: I got error when I run kix script at first time.
Pech Offline
Getting the hang of it

Registered: 02/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
Page 1 of 3 123>


Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Shawn) and 90 anonymous users online.
Newest Members
B1GHawkeyes, GeoHamm, register, Marcus_Dunne, stuvwx656262
17397 Registered Users

Generated in 0.448 seconds in which 0.158 seconds were spent on a total of 13 queries. Zlib compression enabled.

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