Page 1 of 1 1
Topic Options
#100522 - 2003-04-24 10:10 PM MS-Tech Article findings: 318689
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
If we look at Microsoft's page -

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

And if you have worked with BATCH files for a while, you would notice that they want you to run the following for NT Machines:
quote:

call kix32.exe myscript.scr

Why would you want to "CALL" kix32.exe myscript.scr ?

One of the things that I am seeing on my XP Professional system in our Enterprise is that if you do the following:

quote:

kix32.exe myscript.scr

It fires off the script twice. That seems kind of weird.

I went back to the Microsoft way of thinking and put the CALL Back in and it seems fine.

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

Top
#100523 - 2003-04-24 10:36 PM Re: MS-Tech Article findings: 318689
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well.. isn't that just weird!

I have seen the KB article but I dismiss it as typos.
See my FAQ http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=10;t=000071

Are you using a logon.bat to call KiX?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#100524 - 2003-04-24 10:38 PM Re: MS-Tech Article findings: 318689
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Yes.. I use the BAT to call the Kix script.

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

Top
#100525 - 2003-04-24 10:43 PM Re: MS-Tech Article findings: 318689
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
You know...

The more I think about about this.

We should just simply change in AD from -

NTLOGON.BAT

To -

wkix32.exe kixtart.kix

This way, we don't have to worry about distro packages for KiX, Batch files, etc.

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

Top
#100526 - 2003-04-25 02:53 AM Re: MS-Tech Article findings: 318689
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Kent,

That is what I have gone back to. With our LAN/WAN speed and AD using local servers for authentication, I don't copy KIX to the local system anymore.

For NT/2000/XP/2003 you should be able to simply use:

WKIX32.EXE LOGON.KIX
In the users logon profile

For Win9x you have to use batch. So, if no Win9x there is no reason to run batch anymore.

Top
#100527 - 2003-04-25 03:35 AM Re: MS-Tech Article findings: 318689
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
But..

I think with these exercises, we are able to provide good documentation (FAQ's, answers, etc.) for our fellow scripters. [Smile]

It is good information.

I have proposed the following change script for users in AD:
code:
CLS
BREAK ON
$DomainString='DOMAIN'
$GroupString='Domain Users'
$GroupObj = GetObject('WinNT://' + $DomainString + '/' + $GroupString)
For each $UserObj in $GroupObj.Members
;-Look for the word NTLOGON in case of NTLOGON OR NTLOGON.BAT
IF $UserObj.AccountDisabled<>'True' AND INSTR($UserObj.LoginScript,'NTLOGON')
?$UserObj.Name
?$UserObj.FullName
$UserObj.LoginScript = 'WKIX32.EXE KIXTART.KIX'
$UserObj.SetInfo
$error=@error
$logshare='H:'
$logfile=$logshare+'\'+$DomainString+'CHANGESCRIPT.CSV'
$logdata=$UserObj.Name+','+$UserObj.FullName+','+$error+@CRLF
LOGGER($logfile,$logdata)

ENDIF
Next
?'--'
?'Script complete'
SLEEP 4

FUNCTION LOGGER($logfil,$logdat)
$result=0
$n=0
DO
$result=Open(1, $logfil, 5)
IF $result<>0
IF $n=0
;First wait
?'Please wait'
ELSE
;follow waits
'.'
ENDIF
SLEEP 3
ELSE
$result=WriteLine(1, $logdat)
$result=Close(1)
ENDIF
$n=$n+1
UNTIL $result=0 OR $n=5
ENDFUNCTION

Thanks,

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

Top
#100528 - 2003-04-25 06:11 AM Re: MS-Tech Article findings: 318689
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mm...
didn't know that I survive without all these problems by just calling kix directly in profile.

and indeed, the profile looks nice when it says:
"wkix32"

as being logonscript [Big Grin]
_________________________
!

download KiXnet

Top
#100529 - 2003-04-26 02:58 AM Re: MS-Tech Article findings: 318689
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, back at the thing...

what about everyone posting a complaint to MS about this?

you can't call exe from bat.
period.
if it's needed in XP, it's bug of the OS!
_________________________
!

download KiXnet

Top
#100530 - 2003-04-26 03:14 AM Re: MS-Tech Article findings: 318689
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, I posted twice but still no change. [Frown]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#100531 - 2003-04-26 03:18 AM Re: MS-Tech Article findings: 318689
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeah!
that's what I would suspect.
once you complain your money color becomes red! (are canadian dollars red?)

even though kixtart users are the most fanatic logonscript users, still they don't listen to us!

and you, you posted twice!!!!
damn, they should have given you a million dollar price of baring with them [Wink]

{edit}
as a side note...
I've seen good replies (= quick) with making some ugly language fill your post/mail.

sending "Fuck" 3 times in one mail seems to wake up even bill gates.

[ 26. April 2003, 03:20: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#100532 - 2003-04-26 04:55 AM Re: MS-Tech Article findings: 318689
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Can a Moderator please clean up the language on this posting. [Smile]
Top
#100533 - 2003-04-26 05:04 AM Re: MS-Tech Article findings: 318689
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sorry.
but it's not about language, it's about methods and thus, even "hell" when pronounced in correct sentence will do some good things!
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 476 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.061 seconds in which 0.026 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