AD Powershell Modules
Install-WindowsFeature RSAT-AD-PowerShell
- Copy UVHDs to new folder and share folder e.g to
\\fileserver01\uvhd_profiles
- Create new folder and share folder e.g. at
\\fileserver01\fslogix_profiles
- Adjust variables in Convert-UPDtoFSLogix.ps1
set $updroot = "\\fileserver01\uvhd_profiles"
set $fslogixroot = "\\fileserver01\fslogix_profiles"
set $errorlogfolder = "\\fileserver01\uvhd_profiles"
- Run Convert-UPDtoFSLogix.ps1 in ISE as Administrator
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"
Download and install FSLogix
https://aka.ms/fslogix_download
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
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
The script is a modified version from Roger Critz from the Microsoft Tech Community Post