Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Home drive script

Status
Not open for further replies.

12122053

Technical User
Joined
Feb 19, 2001
Messages
210
Location
US
What is the correct syntax for home drive mapping. Example net use g:\\server\users\%username%. I tried this but no luck, any other suggestions, thanks.
 
did you try a space g: \\server ?
and make sure the %username% is an actual share.

Or I might be missing some pertinent information

This should work for NT and Win2K, There is another switch for Win 95. I think is a /H. I'd haveta hit the books for that one.
 
Try that still no luck, any other suggestions, thanks.
 
Can you type \\server\users\%username% from the run box and open the folder. IF not make sure the share is correct.

Steve
 
Yes, I can perfectly get into the user's folder from the run box. Any other suggestions, thanks for your help.
 
This line is from a logon script I am currently using on a win2k domain..

net use p: \\10.16.1.2\public /persistent:no

I use the IP address instead of the server name because my users sometimes vpn in and it avoids having to have a WINS server. Long story but it works...
 
in their user settings, set home directory as \\server\users\%username%

Then if they are 9x use a home.bat login sxript that reads:

net use h: /home

If they are 2k, you don't need anything.

Job done.
 
Thank's for all your help, but still having problem. All clients are Windows 95 and 98. All other map statments work correctly, except home drive mapping. Any other suggestions or links, thanks.
 
Creare users folder on one server. Share as users with full control to domain users. Then in UMD select all users and choose properties. Set home directory (use drive H for future proofing) to \\servername\users\%username%

Once you hit ok, the server will generate all directories.

Create home.bat and put the line in I detailed above. Put script in netlogon folder and replicate to all DCs.

Have been using this for years and have just tested in the lab.
 
In Win9X you can't traverse more than one directory down a particular tree when mapping drives. That is to say, you can map \\server\share , but you CANNOT map \\server\share\username
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top