Skip to content

Powershell script helping to migrate Microsoft User Profile Disk VHDs to FSLogix

Notifications You must be signed in to change notification settings

johanvanoosterhout/convert-udp-fslogix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Migrate UPD Profiles to FSLogix

Pre-requesites

AD Powershell Modules

Install-WindowsFeature RSAT-AD-PowerShell

Migrate UPD VHDs to FSLogix VHDs

  1. Copy UVHDs to new folder and share folder e.g to \\fileserver01\uvhd_profiles
  2. Create new folder and share folder e.g. at \\fileserver01\fslogix_profiles
  3. Adjust variables in Convert-UPDtoFSLogix.ps1
 set $updroot = "\\fileserver01\uvhd_profiles"  
 set $fslogixroot = "\\fileserver01\fslogix_profiles"  
 set $errorlogfolder = "\\fileserver01\uvhd_profiles"  
  1. Run Convert-UPDtoFSLogix.ps1 in ISE as Administrator

Disable User Profile Disks on all RDSH

Use Server Manager to disable User Profile Disks on all RDSH.

Or use powershell

Example:

Set-RDSessionCollectionConfiguration -CollectionName "Session Collection 02" -DisableUserProfileDisk -ConnectionBroker "RDCB.Contoso.com"

Install and Configure FSLogix

Download and install FSLogix
https://aka.ms/fslogix_download

Configure FSLogix on all RDSH

Example:

[HKEY_LOCAL_MACHINE\SOFTWARE\FSLogix\Profiles]
"Enabled"=dword:00000001
"VHDLocations"="\\fileserver01\fslogix_profiles"
"VolumeType"="VHDX"
"SizeInMBs"=dword:00000c00
"IsDynamic"=dword:00000001
"LockedRetryCount"=dword:00000018
"LockedRetryInterval"=dword:00000006

FSLogix Documentation

Optional - Convert VHD to VHDX

Pre-Requesites

Check exisiting

Get-WindowsFeature *hyper-v*

Hyper-V-Powershell

Install-WindowsFeature -Name Hyper-V-PowerShell

Convert VHD to VHDX

Convert-VHD TestVHD.vhd -VHDFormat VHDX -DestinationPath C:\temp\VHDs\TestVHDX.vhdx -DeleteSource 

Reference

The script is a modified version from Roger Critz from the Microsoft Tech Community Post

About

Powershell script helping to migrate Microsoft User Profile Disk VHDs to FSLogix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%