In this article, we will focus on configuring a network share for UPD (User Profile Disks) and UVHD (User Virtual Home Drives) files on a Terminal Server (Remote Desktop Services) running Windows Server 2022. This configuration allows users' data and settings to be stored on a network drive, which can help with data backup and centralized management.
Prerequisites
Before starting the configuration, ensure the following prerequisites are met:
- A file server with appropriate permissions and network access.
- The Remote Desktop Services role installed on the Windows Server 2022.
Setting up the Network Share
First, create a network share on the file server for UPD and UVHD files:
# Create a new folder on the file server
New-Item -ItemType Directory -Path "<FileServerPath>\RDSProfiles"
# Set the necessary permissions for the folder
Set-Acl -Path "<FileServerPath>\RDSProfiles" -Account "RDSUsers" -Permissions @{Add="FullControl"}
# Create the network share
New-SmbShare -Name RDSProfiles -Path "<FileServerPath>\RDSProfiles" -FullAccess "RDSUsers"
Configuring User Profile Disks (UPD)
Next, configure User Profile Disks in the RD Session Host Configuration Console:
- Open Server Manager and navigate to "Remote Desktop Services".
- Select "Collections" and then the corresponding collection for your RD Session Host.
- Go to "Tasks" and click "Edit Properties".
- In the "Properties" window, click the "User Profile" tab.
- Select "Use User Profile Disks" and enter the path to the previously created network share.
Configuring User Virtual Home Drives (UVHD)
To set up User Virtual Home Drives, follow these steps:
- Open the Group Policy Management Console and create a new Group Policy Object (GPO) for your RD Session Host environment.
- Navigate to "Computer Configuration > Administrative Templates > System > User Profiles" and enable the "Set roaming profile path for all users logging on to a server" policy.
- For the "Profiles path" setting, enter the UNC path to the network share.
- Enable the "Set home folder size limit for all users logging on to a server" policy.
- For the "Home folder size limit" setting, enter a suitable limit, e.g. 50 GB.
Verification
To verify that the configuration is working as expected, connect to the RD Session Host and:
- Check that the user's roaming profile is loaded from the network share.
- Check that the user's data and settings are stored in the appropriate subfolders, such as "My Documents", "My Pictures", etc.
Troubleshooting Tips
If you encounter issues, ensure that:
- The network share has the correct permissions for the "RDSUsers" group.
- The file server is accessible from the RD Session Host.
- The path to the network share is correct.
This article has provided a detailed guide on setting up network ```python shares for User Profile Disks (UPD) and User Virtual Home Drives (UVHD) on a Terminal Server (Remote Desktop Services) running Windows Server 2022. This configuration enables centralized management of user data and settings, as well as simplifies backup and data recovery.