USERS home directory creation in NT Server 4.0

I would like to simulate Novell's USERS home directory setup on NT server 4.0.   The way MS suggests is to
Share the directory "USERS" and then specify the path to the individual home directories in the Administrator Tools's Domian Users Profile Utilityy.  Ex.  of the path would be \\Users\user1.  This works fine, it creates the users home direcoty and give appropriet permissions, BUT every user logging in will see everyone elses home directory becuase of the sharing of directory "USERS".  They will be able to see it, but can't access it.  When you have 100 users, you don't want to click on your H drive and see 100 folders.  The only way I can think of is to Share the individual users fodlers, like sharing directory User1, User2......User100.  But this a lot of work becuase you have to manually create the directory , then share it and then give that user permission to the directory. Also that is a huge browser list.

I was wondering if there is any other way of creating home directories in NT server 4.0.   MS's idea of creating home directories is OK if there was a way to hide all other folders under the Share "USERS".  I would appreciate any help that you can give me.  Thank you in advace.
Who is Participating?
pbrydenConnect With a Mentor Commented:
REM This command script uses the ADDUSERS.EXE and RMTSHARE.EXE from the
rem NT Server Resource Kit. The cacls.exe comes with NT 4.0
rem the addusers /d command must be run from a domain controller to produce
rem  a list of domain users.
addusers /d users.txt /S:;
REM manually edit users.txt to delete the [global] and [local] sections
rem before continuing
rem replace the D:\users and the \\servername as appropriate for your environment
rem run the for command from the server where the user dirs will be created and shared.
REM This command will skip line one ([Users] is on this line) and read the first "token" (username) from the users.txt file,
REM create the directory, share the directory as Username$ with a remark using the users Full Name
rem and set permissions for each directory to Full control for Administrators and System
rem and Change for the individual user.
REM The CACLS output is logged to perms.log in the default directory
for /f "delims=; tokens=1,2 skip =1" %%i in (users.txt) do (md D:\users\%%i) & (rmtshare \\SERVERNAME\%%i$ D:\users\%%i /Remark:"%%j User Share") & (Echo Y|cacls /c /t /p D:\users\%%i %%i:c administrators:f system:f >>perms.log)

I would create a share for each users home directory, but add a $ to the end of the share name to make it a hidden share, keeping it out of the browse list. I have written a script to create home dirs, shares and set permissions on the directories. I am not aware of a better way.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.