Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Where can I add and configure a login script for each user in SBS 2011?

For example, I to map a drive for a user-specific folder. I do not want to use folder redirection.

share|improve this question
up vote 3 down vote accepted

That's massively unsustainable. Ideally, you should use folder redirection. Why aren't you?

If you must use a script, You should craft a single script that uses variables and a sane folder structure on the share. For example, if the folder layout is \\server\share\userFolder you could get it done in a one-line logon script that reads:

net use z: \\server\share\%username%

You would link this in group policy under User Configuration > Policies > Windows Settings > Scripts

Make sure that wherever you store the script, all users have access to it via share and NTFS ACLs.

If you really must do this, you can define a logon script in ADUC for each user here:


share|improve this answer
What about mapping a home folder to drive letter? – John Feb 20 '12 at 15:12
@John In my example, it would map the folder to the letter Z:. You can replace Z: with whatever other letter you want. You can also use the Home Folder field in the same screenshot that I posted above. That said, it's antiquated and you really shouldn't use it. – MDMarra Feb 20 '12 at 15:14

As you are using SBS 2011 therefore it has to new Group Policy feature Group Policy Preferences, which I have used just last week to do exactly this.

I had heard about GP Preferences and used this tutorial to carry it out

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.