#70746 - 2002-10-10 05:02 AM
logon.bat
|
Anonymous
Anonymous
Unregistered
|
I need some help with creating a multipurpose logon.bat.
The problem I am having is we have serveral sites with their own IDS (sub networks type thing) with variation of connection speed.
since we have gone to windows 2000 server, when I update one logon.bat it then gets sent around. of course If I update one thats nice and fast it gets sent to the slower server and of course it points back to the faster server.
is there a way I can set the logon.bat so it knows to use the server its ran from. after looking at the KIX doc I found the %0\..\kix32.exe but of course when I try to use that in my logon.bat it does this
\\Server1\netlogon\logon.bat\kix32.exe
anyone manged to get around this?
|
|
Top
|
|
|
|
#70748 - 2002-10-10 07:16 AM
Re: logon.bat
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Bonky,
Have a look my second to last response on this topic..
I cover a bit on a re-write of the NTLOGON.BAT..
Deployment of Kix Scripts
It is significantly trimmed down from our previous version.
Does this help?
Kent
|
|
Top
|
|
|
|
#70749 - 2002-10-11 04:16 AM
Re: logon.bat
|
Anonymous
Anonymous
Unregistered
|
when I update the logon.bat to four of our servers (2000 servers) I try to balance kix to pick up and run the script from that server its being used.
Because 2000 replicates the logon.bat to all of the servers eventually it points to the ONE server casuing a bottle neck coz its no longer balanced.
is there away to put a variable into the logon.bat so it actually picks up the server its being ran from? rather than a fixed server?
as I tried to explain i saw the %0 but that seems to put in the "\\server\netlogon\logon.bat"
has anyone got a simlar sutiation of having a few servers with this kinda problem?
|
|
Top
|
|
|
|
#70751 - 2002-10-11 06:05 AM
Re: logon.bat
|
Anonymous
Anonymous
Unregistered
|
Ok.. so show me an example using NLTEST, (please)
|
|
Top
|
|
|
|
#70752 - 2002-10-11 06:27 AM
Re: logon.bat
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
|
|
Top
|
|
|
|
#70753 - 2002-10-11 06:48 AM
Re: logon.bat
|
Anonymous
Anonymous
Unregistered
|
I need to some how via BATCH file .. work out what server the LOGON.BAT is being ran from..
capture that information and replace it with a %1 type parm. with in the logon.bat
That way I can happy let windows do its thing (replicate)
|
|
Top
|
|
|
|
#70755 - 2002-10-11 07:20 AM
Re: logon.bat
|
Anonymous
Anonymous
Unregistered
|
I use the LOGON.bat to call kix32 logon.kix
so I cant do the @ commands...
the %0 gives me a line like this
\\server\netlogon\logon.bat
so I cant use the %0 (unless you can tell me a way to shorten it!?)
|
|
Top
|
|
|
|
#70757 - 2002-10-11 09:23 AM
Re: logon.bat
|
Anonymous
Anonymous
Unregistered
|
Thanks for the reply... I did retry that %0\..\ (i slightly misunderstood what was going on there)
I tried %0\..\ the results I got was
'\\server\NETLOGON\logon.BAT\..\'
My command line was (in logon.bat)
echo. echo %0\..\ echo.
|
|
Top
|
|
|
|
#70759 - 2002-10-11 10:13 AM
Re: logon.bat
|
Anonymous
Anonymous
Unregistered
|
Well... yes.. but it is doing on win9x as well! 8(
|
|
Top
|
|
|
|
#70761 - 2002-10-11 10:23 AM
Re: logon.bat
|
Anonymous
Anonymous
Unregistered
|
Yes.. that is correct!...
Im not sure why its doing that...
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1188 anonymous users online.
|
|
|