Page 1 of 1 1
Topic Options
#22561 - 2002-06-04 02:38 AM Home directories for NT/9X/2k clients
redwings Offline
Lurker

Registered: 2002-06-04
Posts: 2
Loc: Honolulu, Hawaii
Hello all. I'm very new to KiXtart and I'm trying to write a login script to map home directories for users of NT/9x/2k clients on a Windows 2000 domain.

I don't have a problem mapping to shares using KiXtart, but I am having difficulty in mapping to home directories below the share. I realize 9x clients need kxrpc, I'm still testing the script using an XP client. Right now I'm just trying to figure out how to map to a specific directory. For example \\server\share\dir\username instead of \\server\share. Here's what I have so far:
---------------------
Use "*" /DELETE
Use G: "\\server\share1" /Persistent
Use H: "\\server\share2" /Persistent
Use I: "\\server\share3" /Persistent
Use J: "\\server\share4" /Persistent

If InGroup ("ISD")
Use x: "\\server\share1\users\@userid" /Persistent
EndIf
---------------------
...........Reading about @HOMESHR and @HOMEDIR, would that be a better way to go? Any help is appreciated.

Top
#22562 - 2002-06-04 02:57 AM Re: Home directories for NT/9X/2k clients
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Only W2K and XP support mapping below the share level.

You can use the Subst command to accomplish this on Win9x and NT. See deep redirection or search on SUBST and "MAP ROOT"

My suggestion is to create a hidden share for each user's home directory.

[ 04 June 2002, 02:57: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#22563 - 2002-06-04 04:18 AM Re: Home directories for NT/9X/2k clients
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
This is the code, but your 9x users home dirs need to be shared... Typically hidden.
code:
select
case $os="Win9x" $subcmd="net use" $h="\\server\@userid$$"
case $os="WinNT" $subcmd="subst" $h="\\server\share\@userid"
case $os="Win2k" $subcmd="net use" $h="\\server\share\@userid"
case $os="WinXP" $subcmd="net use" $h="\\server\share\@userid"
endselect

? " Connecting "color c+/n"H: "color w/n"to "color w+/n $h color w/n
shell "%comspec% /c $subcmd h: /d 1>Nul 2>&1"
shell "%comspec% /c $subcmd h: $h 1>Nul 2>&1"



[ 04 June 2002, 04:27: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#22564 - 2002-06-04 04:22 AM Re: Home directories for NT/9X/2k clients
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
But what's this CMD stuff to Wintendo...
Should use %comspec%
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#22565 - 2002-06-04 04:26 AM Re: Home directories for NT/9X/2k clients
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
you got me...

I just cut 'n pasted the win9x stuff in there as I have banned that wintendo crap from my network.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#22566 - 2002-06-04 04:28 AM Re: Home directories for NT/9X/2k clients
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Have NOT seen Win9x in years. Isn't there a SUBST for Win9x? Or is that only for NT? If it is only for NT then my comments above are incorrect and you should take my advice and create hidden shares for all home directories.

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

Top
#22567 - 2002-06-04 04:30 AM Re: Home directories for NT/9X/2k clients
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Yeah... hopefully by the end of this year all that Wintendo crap will be gone off of my network too. Did I ever mention I hate Wintendo?

Once the last vestiges of Wintendo are gone, I can migrate my NetWare server too.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#22568 - 2002-06-04 04:47 AM Re: Home directories for NT/9X/2k clients
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
We still have 6000 Win9x computers on the network, but thank God I let other people test my code on them and maintain them.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#22569 - 2002-06-04 05:50 AM Re: Home directories for NT/9X/2k clients
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
win9x has subst, but is only substs local folders/drives... ie, it isn't connected to the network redirector.

If the win9x users aren't roaming, (are stuck on their 95 machines) then I'd only share those users home folders. It is a lot of overhead hosting a few hundred/thousands of home dirs on a server. as well as taking forever to explore to it, even if they are hidden.

Share the ones you need, and map deep for the clients you can, if you are able to.

I did have a batch file somewhere that would rmtshare a directory containing a list of folders as hidden shares assuming the the folder names matched the usernames and applied correct security and cacls to them... if any one cares.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#22570 - 2002-06-04 09:10 AM Re: Home directories for NT/9X/2k clients
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Redwings,

Here is an old post, but good information if you read all of it.

PLEASE HELP WITH MAPPING HOME DIRECTORY

Top
#22571 - 2002-06-04 09:38 PM Re: Home directories for NT/9X/2k clients
redwings Offline
Lurker

Registered: 2002-06-04
Posts: 2
Loc: Honolulu, Hawaii
Thank you all for your time and effort! All of your replies have been insightful. You guys rock! [Big Grin] I need to play around and see what works now.
Top
#22572 - 2002-06-05 12:26 AM Re: Home directories for NT/9X/2k clients
Anonymous
Unregistered


Might also want to check out:
http://www.scriptlogic.com/eng/Products/Autoshare/main.asp

-Brian

Top
Page 1 of 1 1


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

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.063 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