#195299 - 2009-08-06 07:40 AM
loading kix script via batch
|
ddady
Getting the hang of it
Registered: 2006-09-03
Posts: 98
|
Hi all,
I have done this a several of times on several networks, but it doesn't work on a new network i'm working on.
I have created a batch file and put in the logon script field in the users in the AD. But when i try to run it i get an error message that says "couldn't find/open logon.kix"
the code in the batch is:
%0\..\kix32.exe \\[server name]\netlogon\logon.kix
whats wrong here?
|
Top
|
|
|
|
#195300 - 2009-08-06 08:34 AM
Re: loading kix script via batch
[Re: ddady]
|
Arend_
MM club member
Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
|
How about:
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\logon.kix
|
Top
|
|
|
|
#195304 - 2009-08-06 10:40 AM
Re: loading kix script via batch
[Re: Arend_]
|
ddady
Getting the hang of it
Registered: 2006-09-03
Posts: 98
|
Without the double "\\" before the %logonserver% ?
I'll try it and post again for success or failure
|
Top
|
|
|
|
#195311 - 2009-08-06 12:16 PM
Re: loading kix script via batch
[Re: Glenn Barnas]
|
NaasMarais
Fresh Scripter
Registered: 2009-08-06
Posts: 40
Loc: South Africa, JHB
|
I use the following in my bat file so that it can access the kix scripts
@ECHO OFF
%0\..\kix32 %0\..\default.kix Hope it helps
_________________________
KIX Scripting is the Bomb!!
|
Top
|
|
|
|
#195314 - 2009-08-06 01:44 PM
Re: loading kix script via batch
[Re: NaasMarais]
|
ddady
Getting the hang of it
Registered: 2006-09-03
Posts: 98
|
I use the following in my bat file so that it can access the kix scripts
@ECHO OFF
%0\..\kix32 %0\..\default.kix Hope it helps
Well, this method solved the problem. Thanks NaasMarais :-)
And ofcourse thanks to Glen and apronk
|
Top
|
|
|
|
#195320 - 2009-08-06 03:44 PM
Re: loading kix script via batch
[Re: Mart]
|
ddady
Getting the hang of it
Registered: 2006-09-03
Posts: 98
|
Frankly i prefer to use the %SERVERLOGON% or the DOMAIN methods, but unfortunately they dont workm in my case. I'm using a SERVER 2003 with XP PRO.
Like i said in the begining, i have tried it with the server name as i used it before in other networks and it worked, but from some reason over here now it doesn't.
If anyone knows why and how to fix it, i will be more than glad to do it.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 262 anonymous users online.
|
|
|