Page 2 of 2 <12
Topic Options
#197911 - 2010-02-26 01:11 PM Re: login script problem [Re: Arend_]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
 Originally Posted By: apronk
 Originally Posted By: DrillSergeant
Notepad++ is my colouring friend ;-)

I still after all those years use plain old notepad :-)
Same here, although I do use vi occasionally, especially when I need to employ RegEx based updates, or do search & replace within specific line ranges. It's just something about keeping my hands on the keyboard..

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#197912 - 2010-02-26 01:13 PM Re: login script problem [Re: Glenn Barnas]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
CTRL+H does that for me ;\)
Top
#197917 - 2010-02-26 02:47 PM Re: login script problem [Re: Arend_]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
 Originally Posted By: apronk
CTRL+H does that for me ;\)
yeah, me too, if I want to replace ALL or want to eyeball each one.
 Code:
start:end s/old/new/G
will replace "old" with "new" between start and end line numbers. not "better", but more comfortable for me. vi was my primary coding editor for about 15 years, so old comforts die hard.

G-
_________________________
Actually I am a Rocket Scientist! \:D

Top
#197920 - 2010-02-26 04:00 PM Re: login script problem [Re: Glenn Barnas]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Plus you can do neat things in VI like "take the first two numeric fields on the next 5 lines, switch them around and repeat the first one with a bit of text in between" - try doing that in notepad.

But we're getting a bit off topic here.

Top
#197923 - 2010-03-01 10:56 AM Re: login script problem [Re: mrcosmo]
mrcosmo Offline
Fresh Scripter

Registered: 2010-02-05
Posts: 14
Loc: nl
OK all thx for the script and help!
i copyd paste and on some pc's it works but on most i don't see the script.

anyone here know how to trouble shoot this?
win2003 dom controller

login.bat within user

Top
#197925 - 2010-03-01 12:05 PM Re: login script problem [Re: mrcosmo]
mrcosmo Offline
Fresh Scripter

Registered: 2010-02-05
Posts: 14
Loc: nl
ok im a bit furhter now
it looks like the users who get the login script(kix) are all at the same group within AD so when i give someone the same group membership they also get the login script. but why ?

anyone knows this ?

Top
#197927 - 2010-03-01 02:25 PM Re: login script problem [Re: mrcosmo]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Since you're using a login.bat, just add a PAUSE at the end, after the kix command. This will leave the window open with any messages. Kix might be throwing an error that you don't see because the window closes.

Also - try running the command manually:
 Code:
\\MyDomain\netlogon\kix32.exe \\MyDomain\netlogon\kixtart.kix
Also - ".SCR" has been deprecated - you should use ".KIX", as .SCR is associated with screen savers.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#197939 - 2010-03-02 11:26 AM Re: login script problem [Re: Mart]
mrcosmo Offline
Fresh Scripter

Registered: 2010-02-05
Posts: 14
Loc: nl
Hi all,

I got the problem on client side in my windows log
http://img39.imageshack.us/img39/5333/naamlooswe.jpg

anyone know what could be the problem?

Top
#197940 - 2010-03-02 11:35 AM Re: login script problem [Re: mrcosmo]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
That is a generic message it does not describe the actual error.

When do you get this message? Immediately at the start of the script or somewhere along the way?
You can find out what part is causing this by commenting out most of the script, run it and if all is ok uncomment the next part, run it, etc..... In the end you should find the part that creates the event log entry.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#197945 - 2010-03-02 02:33 PM Re: login script problem [Re: Mart]
mrcosmo Offline
Fresh Scripter

Registered: 2010-02-05
Posts: 14
Loc: nl
Hi all again,

i tried this command on several pc's
\\MyDomain\netlogon\kix32.exe \\MyDomain\netlogon\kixtart.kix

some worked so i looked at the difference and indeed those users are all members of an surthen group
when i make an user member ot that group the command is also succesfull

but why only that group?
anyone can help me with this?

Top
#197951 - 2010-03-02 07:40 PM Re: login script problem [Re: mrcosmo]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, is this shurten group lala or eeeee or what?
didn't see this group in your script, so can't really diagnose it.
_________________________
!

download KiXnet

Top
#197963 - 2010-03-03 09:57 AM Re: login script problem [Re: Lonkero]
mrcosmo Offline
Fresh Scripter

Registered: 2010-02-05
Posts: 14
Loc: nl
OK in my script there is no direction to the group.

so it must be something else.

i also tested if other thing work of the script and this is true
shares are OK but just not the welcome screen
they only get the welcome screen when member of certain group

Top
#197968 - 2010-03-03 02:44 PM Re: login script problem [Re: mrcosmo]
mrcosmo Offline
Fresh Scripter

Registered: 2010-02-05
Posts: 14
Loc: nl
Hi all,

Just wanted to say i found and solved the problem
pretty easy at the end tsk tsk \:\(

i was missing an end if here:

IF INGROUP("burp")
USE i: /d
USE i: "\\$ESERVER\burp"

IF INGROUP("popop")
USE M: /d
USE M: "\\$ESERVER\popop"

endif

Top
#197969 - 2010-03-03 02:46 PM Re: login script problem [Re: mrcosmo]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
That’s what you get for staring at code way to long ;\)

Good to hear that you got it running.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#197970 - 2010-03-03 03:01 PM Re: login script problem [Re: Mart]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Once again, the SANITY udf would have identified this in a few seconds... It's eyes never get tired!

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#197972 - 2010-03-04 02:40 PM Re: login script problem [Re: mrcosmo]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
 Originally Posted By: mrcosmo
Hi all,

Just wanted to say i found and solved the problem
pretty easy at the end tsk tsk \:\(

i was missing an end if here:

IF INGROUP("burp")
USE i: /d
USE i: "\\$ESERVER\burp"

IF INGROUP("popop")
USE M: /d
USE M: "\\$ESERVER\popop"

endif


Which was pointed out early on in this thread by me :-P

Top
Page 2 of 2 <12


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

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

Generated in 0.069 seconds in which 0.027 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