Share with netbiosDomain in Name from GPO "Set user home folder"
If you are using Group Policy Objects (GPO) to manage user home folders on your Windows network, you may come across a situation where you need to include the netbiosDomain in the name of the shared folder. This article will guide you through the process of configuring the GPO to set user home folders with the netbiosDomain included in the share name.
Understanding User Home Folders
User home folders are personal storage spaces on a network server where users can store their files and data. These folders are typically created and managed by system administrators using GPOs. The GPO "Set user home folder" allows administrators to automatically create and assign home folders to users when they log in to the network.
Including netbiosDomain in the Share Name
By default, the GPO "Set user home folder" creates home folders with the share name in the format "\\server\share\username." However, if you need to include the netbiosDomain in the share name, you will need to make some additional configurations.
Step 1: Create a Shared Folder
First, you need to create a shared folder on the server where you want to store the user home folders. Make sure the appropriate permissions are set to allow users to access their respective folders.
Step 2: Configure the GPO
Next, open the Group Policy Management Console on your domain controller and navigate to the GPO you want to modify (or create a new one).
- Right-click on the GPO and select "Edit" to open the Group Policy Management Editor.
- Navigate to "User Configuration" > "Preferences" > "Windows Settings" > "Drive Maps."
- Right-click on "Drive Maps" and select "New" > "Mapped Drive."
- In the "Location" field, enter the path to the shared folder you created in Step 1, but replace the username with "%USERNAME%". For example, "\\server\share\%USERNAME%".
- In the "Label as" field, enter a name for the mapped drive (e.g., "Home Folder").
- Under the "Common" tab, check the box for "Run in logged-on user's security context."
- Click "OK" to save the changes.
These settings will map the user's home folder to a network drive using the share name with the netbiosDomain included.
Step 3: Apply the GPO
After configuring the GPO, you need to apply it to the appropriate organizational unit (OU) or domain.
- Go back to the Group Policy Management Console.
- Right-click on the OU or domain where you want to apply the GPO and select "Link an Existing GPO."
- Select the GPO you edited or created in Step 2 and click "OK."
The GPO will now be applied to the selected OU or domain, and user home folders will be created with the netbiosDomain included in the share name.
Conclusion
Configuring the GPO "Set user home folder" to include the netbiosDomain in the share name can be useful in certain network environments. By following the steps outlined in this article, you can ensure that user home folders are created with the desired share name format.
| Source | Link |
|---|---|
| Microsoft Docs | https://docs.microsoft.com/en-us/windows-server/storage/folder-redirection/deploy-home-folders |
| Group Policy Management Console | https://docs.microsoft.com/en-us/windows/client-management/group-policies-for-enterprise-and-education-editions |