In my earlier post, I created an instruction guide on how to redirect desktop folder to a different location outside the user’s profile to prevent profile expansion. In this guide, I am going to show you how to folder redirect Document folder to the home folder.
The process is almost the same as desktop folder redirection mentioned in the previous guide but there are few settings that are different. The steps below explain how to folder redirect document folder to the home folder. The steps will work on Windows 2008, 2008 R2, Windows 2012, Windows 2012 R2.
If you have not setup a home folder for a user before, follow steps 1 to 7. If you know how to create a home folder, skip 1 to 7 and continue from step 8.
- Launch Active Directory Users and Computers
- Locate a user or select all the users in an OU by pressing Ctrl-A
- Right click on a user or multiple users and select properties. A dialog box will appear displaying the property of a user as shown below. If you have selected multiple users, the settings will be slightly different from below and the tabs will be almost identical.
- Click on Profile Tab
- Under home folder section, select connect and specify a drive letter as shown in the below screenshot. After you have specified the drive letter, specify the server and folder name to store the home folder (the folder will need to be shared otherwise folder redirection will not work). The format should be \\servername\sharedfoldername\%username%. It is recommended to enter %username% if you have selected multiple users since the home folder will be created with the associated usernames. You can also enter this if you have selected one user to prevent typo.
- Click Apply.
- Click Ok.
- The Home folder will now be created. Launch Group Policy Management from the Task bar or from the start menu.
- Expand the forest level and then domain level and expand an OU, which you would like to create the folder redirection. Right click on an OU and click Create a GPO in this domain, and link it here.
- Right click on the GPO and click Edit.
- Navigate to Users Configuration ->Policies -> Windows Settings -> Folder Redirection
- Right Click on Documents and click on properties.
- A dialog box will appear. In the Target tab (selected by default), select Basic – Redirected everyone’s folder to the same location.
- Under Target Folder Location, click the drop down box and select Create a folder for each user under root path (This should be selected by default).
- In the Root path, Specify the location of the home folder by using UNC (Universal Naming Convention) path \\servername\HomeFolderSharedFolder. The \\servername is the name of the server where the home folders are stored and the \HomeFolderSharedFolder is the actual shared folder that contains the home folder. Alternatively, you can copy the home folder path from the user’s property in Active Directory Users and Computers described in step 5.
- Once you have specified the location, click on the settings.
- If you would like the administrator to have full access to the user’s Documents folder uncheck Grant the user exclusive rights to the documents.If you would like the users to have full access to their Documents Folder and not the administrator, you can check the settings. If you would like the contents in the current documents to be moved to the new location, check move the contents of Documents to the new location. If you have Windows 2000 or XP Operating System, check the third box Also apply redirection policy to Windows 2000 Server Windows XP and Windows Server 2002 Operating SystemThe Screenshot below shows the settings that I have applied, which is unchecking all the boxes. This is because the settings apply perfectly to my environment.
- Under Policy Removal, leave the settings as default as shown on the above screenshot unless you like to move the documents to local profile in which case you select the second radio button Remove the folder back to the local userprofile location when policy is removed.
- Once you have applied the necessary settings, click the Apply button and then click OK After you clicked the OK button, a warning popup box will appear. Click yes to the warning box.
- Exit out of Group Policy Editor by pressing the cross button on the top right corner.
- On the Group Policy Manager, click on the settings tab and press F5 on the keyboard to refresh the page.
- You will see the group policy settings for Documents Redirection.
- Launch the command prompt and run gpupdate /force command on the server to update the group policy settings.
- Log on and off few times as a user on the client machine to verify that the documents folder has been redirected to the home folder.If you need help with verifying that the Documents have been folder redirected to the user’s home folder, I will create a future guide on this, which will be posted shortly.