Page 1 of 2 12>
Topic Options
#102324 - 2003-06-24 04:17 PM win98 or kixtart bug?
cb6040 Offline
Fresh Scripter

Registered: 2003-06-03
Posts: 14
Loc: FL
I wrote a logon script for a network I maintain using kixtart - it's great. i love it. lets me do all sorts of things that make Windows network management more barable.. I seem to have encountered a bug or something with two of our client PCs. The network is a horrible mix of 95/98/NT/2k/XP and the logon script works great for everyone aside from 2 people on Windows 98. Both PCs are patched to the latest as per Windows Update, and they get an error 67 (can't resolve host? hmm?) when trying to map @HOMESHR to the H drive. I set both of them on batch scripts that do net use cmds specifically for them, and that works fine. that's what leads me to believe it could be a kixtart bug, or a bug in windows.

anyone have experience with this? i'm using Kix 4.21 with the RPC services on both of my domain controllers. it's a 250 PC network, no WAN or layer 2 segmenting or anything.. here's the code snippet:
code:
 if (@HOMESHR)
USE H: /delete
USE H: @HOMESHR
if ((@error <> 0) and (@error <> 85) and (@error <> 1202))
$return = messagebox("Error connecting to the H: drive. Error code: @error", 4103);
else ? " ÃÄ H: (" @HOMESHR ")"
endif
else ? " ÃÄ H: (no home share set)"
endif


Top
#102325 - 2003-06-24 04:23 PM Re: win98 or kixtart bug?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Are there "spaces" in the @HOMESHR path? IF so, try adding ""'s around the macro.

[ 24. June 2003, 16:37: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#102326 - 2003-06-24 04:36 PM Re: win98 or kixtart bug?
cb6040 Offline
Fresh Scripter

Registered: 2003-06-03
Posts: 14
Loc: FL
no spaces [Frown]

I did notice that these 2 users have longer usernames than anyone else, one at 18chars the other at 20chars

The path they mount appears to be short, too:
\\svr-home\firstname.lastname$

Top
#102327 - 2003-06-24 04:39 PM Re: win98 or kixtart bug?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
You have hit some netbios limitation I think.

See the FAQ:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=10;t=000072
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#102328 - 2003-06-24 05:04 PM Re: win98 or kixtart bug?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
And '$' need to be doubled up, this is documented in the KiXtart Manual.
_________________________
There are two types of vessels, submarines and targets.

Top
#102329 - 2003-06-26 09:52 PM Re: win98 or kixtart bug?
cb6040 Offline
Fresh Scripter

Registered: 2003-06-03
Posts: 14
Loc: FL
sealeopard: I am using @HOMESHR as kix apparently puts the home path in there. would i do this?

@HOMESHR = @HOMESHR + "$";

Top
#102330 - 2003-06-26 10:09 PM Re: win98 or kixtart bug?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
No, you would not do that. The home share property of the account should already have the "$" on it if the users share is a hidden share (good practice).

The @homeshr macro will return the contents on the account home directory path property including the "$" if it exists.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#102331 - 2003-06-26 10:18 PM Re: win98 or kixtart bug?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
It's not a case of would or should... you cannot assign anything to a macro!

@HOMESHR is a macro, so trying to assign it like it was a var will not work.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#102332 - 2003-06-27 08:18 PM Re: win98 or kixtart bug?
cb6040 Offline
Fresh Scripter

Registered: 2003-06-03
Posts: 14
Loc: FL
Ah, ok I see that now. I've got 3 people on win98 all having the same problem now, and some people on here said it was a netbios limitation.. that seemed likely with the first 2 users (one has a 19char username, the other 20char) but the 3rd is a short one. so i figured i'd try the other suggestion from sealeapord - which was to double up the $ (i'm assuming that $ is some reserved item in kix and needs to be escaped or something)

it's just odd that these 3 people can't get it and the rest are fine..

Top
#102333 - 2003-06-27 08:27 PM Re: win98 or kixtart bug?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
quote:
i'm assuming that $ is some reserved item in kix and needs to be escaped or something
See the KiXtart Manual v4.21, page 25 and the SETOPTION() function.
_________________________
There are two types of vessels, submarines and targets.

Top
#102334 - 2003-06-28 01:26 AM Re: win98 or kixtart bug?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there still needs to be something really primitive different for these 3 users to the rest.

can't tell you where to start examining but they surely have something different.
_________________________
!

download KiXnet

Top
#102335 - 2003-06-28 03:00 AM Re: win98 or kixtart bug?
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
cb, I cannot duplicate your problem. My test domain is an NT4 server with an XP and a 98 client. I created a share that was hidden and over 21 chars long and YOUR code still worked on the 98 machine. All servers and workstations are fully up to date. What protocols do you run on the 9x computers? TCP/IP I hope? Oh, and for what it's worth the @Homeshr command does not needs the RPC service. I assume you need it for other commands but it was mentioned above in this post so I figured I'd cover it.
Top
#102336 - 2003-06-28 03:10 AM Re: win98 or kixtart bug?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
No one said that the three computers with problems were up to date. cb6040 should have one of the problem users logon to a working computer to see if the problem follows the user or if the problem is limited to just those few computers.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#102337 - 2003-06-28 04:00 AM Re: win98 or kixtart bug?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about the initial "both wksta's are patched with windows update"?
_________________________
!

download KiXnet

Top
#102338 - 2003-06-28 04:33 AM Re: win98 or kixtart bug?
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Well maybe...I don't really trust Windows update for all those shell and basic networking updates.

Ok...I'm wrong maybe...

Let's see what happens when the the failing user logs on elsewhere and a working user logs on at the bad computers.

[ 28. June 2003, 04:33: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#102339 - 2003-06-29 02:02 PM Re: win98 or kixtart bug?
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
Have you considered something like...

Use H: "\\server\@userid$$"

Top
#102340 - 2003-06-29 05:18 PM Re: win98 or kixtart bug?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, keeping with the new way of no vars (macros) in strings...
code:
Use H: '\\server\'+@UserID+'$$'   

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#102341 - 2003-07-01 02:51 PM Re: win98 or kixtart bug?
cb6040 Offline
Fresh Scripter

Registered: 2003-06-03
Posts: 14
Loc: FL
Well, as much as i'd like to try all those, people typically have the same home folder path as their username, but some people share common home folders.. I'll try that to see if that gets it working - but i dont think i can use that as a workable solution.. thanks for the help so far, by the way [Smile]
Top
#102342 - 2003-07-01 03:45 PM Re: win98 or kixtart bug?
Gaven Offline
Starting to like KiXtart
*

Registered: 2003-06-19
Posts: 103
Loc: Washinton DC, USA
You do know that a single resource can be used for multiple (different) network resources? Meaning, the folder that is common to multiple users could have multiple shares (one for each user).
Top
#102343 - 2003-07-01 03:47 PM Re: win98 or kixtart bug?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I would really standardize a HOME folder as a personal folder with ACLs for just that person. If multiple people need access to the same share then they should get a dedicated share with a meaningful name, e.g. Admin or Accounting.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.158 seconds in which 0.075 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