Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used to know how to do this a few years ago, but I can't remember how I did it. I have one machine that is used by 5 different people. I need to map their home drive/folder when a user logs in with their credentials.

The client OS is Windows XP. The home folders are on a Windows 2003 R2 file server. There are no domains, and only a single workgroup in the network.

I would greatly appreciate it, if anybody could point me to a blog, article, or knowledge base that explains how to do this.


share|improve this question
Which version of Windows XP? Only WinXP Pro can log into a domain (without unofficial patches), for example. – Eddie May 2 '09 at 0:53
The machine is running Windows XP Professional. – Hector Sosa Jr May 2 '09 at 0:56
up vote 1 down vote accepted

I have typically done this with one of the following two methods:

  1. For machines logging into a domain (WinXP Pro only, not WinXP Home), create a batch login script that executes "net use" commands, or
  2. Create a bat script that uses "net use" commands and put it or a shortcut to it into the startup folder:

C:\Documents and Settings\<USERNAME>\Start Menu\Programs\Startup


C:\Documents and Settings\All Users\Start Menu\Programs\Startup

share|improve this answer
I use exactly this method. Startup folder rocks :) – saschabeaumont May 2 '09 at 2:07
This one worked the best. I still needed to adjust the security on all the home drives though. – Hector Sosa Jr May 4 '09 at 20:59

User Profile Home folder mapping (active directory):

  1. Right-click the account you wish to modify and select 'Properties'
  2. Click the 'Profile' tab and choose 'Connect:' under the 'Home folder' section

User Profile Home folder mapping (local system):

  1. Right-click 'My Computer' Select 'Manage'
  2. Expand 'Local Users and Groups' and open the 'Users' folder
  3. Right-click the user you wish to modify
  4. Click the 'Profile' tab and choose 'Connect:' under the 'Home folder' section

General drive mapping:

See this article from Microsoft, and look at the net use section.


net use x: \\computer name\share name

To get it to re-map on boot, use /PERSISTENT:YES after the command:

net use x: \\computer name\share name /PERSISTENT:YES
share|improve this answer
Yes, I'm familiar with drive mapping. I already created a control that lets me map drives programatically. I also don't have active directory, only a workgroup. I'll try from the profile tab for each user. – Hector Sosa Jr May 2 '09 at 0:08

You can set this in their user properties under the "Profile" tab.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.