Friday, March 8, 2013

Retrieve usernames for files in a User Profile Disks (UPD) share in VDI environments

User Profile Disks (UPD) is a new technique introduced in Windows Server 2012 to deal with profiles on VDI deployments for Session-Based deployments as well as Virtual Machine-Based deployments.  For more information on setting up UPD also see this TechNet Wiki:

http://social.technet.microsoft.com/wiki/contents/articles/15304.installing-and-configuring-user-profile-disks-upd.aspx

If you have read through the wiki or have already been working with UPD you'll now that the files share that contains the UPD files (.vhdx files) are made up of the users Active Directory SID. To make it easier to identify what UPD file belong to what user, I created a simple PowerShell script that could help out.

Run the script from a PowerShell prompt and specify the parameter where the UPD files are stored.

NAME
    ShowUPDFolderDetails.ps1

SYNTAX
    ShowUPDFolderDetails.ps1 upd-path

EXAMPLE
    ShowUPDFolderDetails.ps1 \\sql01\upd

The output will look something like below and a export.csv file is also created containing the results.

You can find the file on Microsoft TechNet Gallery:
http://gallery.technet.microsoft.com/Retrieve-usernames-for-a-94780a9e

1 comment:

  1. Thanks Freek.
    Pretty silly to just display SID's, not very helpful in my opinion.

    Cheers!
    Simon

    ReplyDelete