Server 2012 RDS / VDI find out which User Profile Disk (UPD) belongs to which user
Server 2012 introduces the User Profile Disk (UPD) in RDS and VDI environments as an alternative to roaming profile’s and folder redirection. Instead of folders held in a file share users profiles are stored on individual .vhdx files stored in a file share.
As with roaming profiles and folder redirection sometimes you may need to troubleshoot profile issues. You might be looking to rename a users UPD or possibly mount the .vhdx to work with the contents of their profile. With UPDs this can be a little tricky as they are named with the user’s Active Directory SID, to the casual observer a meaningless string of letters and numbers.
To help match up usernames with the names of the .vhdx files use the ShowUPDFolderDetails.ps1 script as follows:
Get-RDServer upd-path .\ShowUPDFolderDetails.ps1 \\UPD UNC path...
The first command will tell you the UPD path, the second command will output something like the following:
You can now see which .vhdx file is which users User Profile Disk.
For more details and to download the script click here.