How to massively create "home" folder for users in active directory?

Solution 1:

First of all, the "Home Folder" attribute is a legacy thing. You should probably use either GPO Folder Redirection or a GPO Mapped Drives policy that includes the %username% variable to match the folder name.

If you use Folder Redirection, you can configure it to create the folders for each user if they don't exist. This is the easiest way.

You can certainly script all of this if you don't go the redirection route, but it highly depends on your environment. If you're using PowerShell (which you should), you're going to want the get-aduser, get-acl, set-acl, and new-item cmdlets at a minimum.

You can find out more info and see examples on all of these using the get-help <command> -full command. In order to use get-aduser to enumerate your existing users, you're going to need the AD PowerShell module. You get this from installing the AD Command-line tools in RSAT.

Solution 2:

Like others have said...it's really deprecated.

But if you want to do it en mass inside ADUC:

Highlight all the users, right click, properties.

Go to the profile tab.

Check the box on "Home Folder"

Set the Connect to as whatever drive letter you want mapped.

in the To: box put "\\servername\sharename\%username%"

Example: \\fileserver1\Users\%username%

That will set all of them based on their username/login as a folder in the share on that server and give each of them full rights to their individual folder.