Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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:

Screencap

share|improve this answer
    
What about mapping a home folder to drive letter? –  John Feb 20 '12 at 15:12
1  
@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

http://blogs.technet.com/b/askds/archive/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership.aspx

share|improve this answer

Your Answer

 
discard

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.