Deploying FSLogix Profile Containers for RDS Sessions on Windows Dedicated Servers

Technical architecture diagram illustrating Fslogix Profile Containers RDS Windows
Verified Answer

FSLogix Profile Containers replace slow Roaming Profiles and User Profile Disks on multi-session RDS hosts by mounting per-user VHDX containers over SMB 3.1.1 at logon. Because the entire user profile—including Outlook OST caches, Teams data, and search indexes—attaches at block level in seconds, logon times remain fast and profile corruption drops sharply.

Quick Answer: FSLogix Profile Containers on Windows RDS Dedicated Servers

Replace legacy Roaming Profiles and User Profile Disks (UPD) with FSLogix Profile Containers (VHDX) mounted over SMB 3.1.1 at logon. FSLogix redirects the entire C:\Users\%USERNAME% directory—including Outlook .ost caches, Teams/OneDrive metadata, and Windows Search indexes—at block level in under two seconds, eliminating logon stalls and profile corruption across multi-session RDS farms.

Core RDS Scope: VHDX dynamic containers, Cloud Cache vs. SMB share sizing, ODFC split containers, concurrent session locking, logon/VHDX compaction.

Multi-session Remote Desktop hosts suffer slow logons and Outlook OST corruption when relying on legacy roaming profiles or User Profile Disks. FSLogix mounts VHDX profile containers over SMB at block speed, provided storage IOPS and file locking are sized properly. Below we cover ODFC splits, PowerShell setup, and VHDX compaction.

Slow RDS Profile Logons

Copying gigabytes of roaming profile files over the network stalls user sign-ins and corrupts Outlook caches during concurrent sessions.

SMB Latency & Locking

FSLogix containers require low-latency NVMe SMB shares, exclusion lists for temp bloat, and Cloud Cache or lock handling for multi-session hosts.

Automate & Compact VHDX

Configure FSLogix registry keys via PowerShell, separate ODFC office caches, and schedule dynamic VHDX compaction.

How the FSLogix Filter Driver Eliminates RDS Logon Bottlenecks

Legacy Roaming Profiles fail on multi-session RDS hosts because they rely on SMB file-level synchronization during Winlogon. Opening 40,000 small files over SMB incurs massive metadata round-trip latency, and AppData\Local is excluded by default—breaking Outlook .ost caching and modern browser profiles. User Profile Disks (UPD) improved on this by introducing VHDX mounting, but UPD lacked native support for multiple simultaneous connections, granular exclusions, and Outlook/OneDrive filter optimizations.

FSLogix deploys two kernel-mode drivers—frxdrv.sys (filesystem minifilter) and frxdrvvt.sys—that intercept Windows user profile creation at logon. When a user authenticates to an RDS Session Host, the FSLogix service checks the designated SMB 3.1.1 share, mounts the user’s dynamic VHDX file, and creates a NTFS junction/reparse point mapping C:\Users\%USERNAME% directly to the mounted volume. Only the 4 KB blocks actually read by the user’s apps traverse the network, keeping logon times under 2 seconds even for 30 GB profiles.

Native Outlook OST Caching

Because the VHDX mounts as a local NTFS volume, Outlook Cached Exchange Mode runs at full speed without UNC path errors.

Concurrent Session Support

With ConcurrentUserSessions or RW/RO differencing disks, users can run RemoteApps across two RDS hosts simultaneously.

Zero-Copy Logoff

Dirty blocks flush continuously over SMB during the session, so logoff simply dismounts the VHDX cleanly in milliseconds.

Licensing Included

FSLogix is included at no extra cost for any environment carrying valid RDS CALs or SPLA SALs.

FSLogix vs. User Profile Disks vs. Roaming Profiles Matrix

When architecting a multi-host RDS deployment on dedicated hardware, compare the three native Microsoft profile technologies across I/O behavior and operational resilience:

RDS Profile Capability FSLogix Profile Containers User Profile Disks (UPD) Legacy Roaming Profiles
Logon Mechanism Block-level VHD/VHDX attach Block-level VHDX attach Full file-by-file SMB copy
Typical 15 GB Profile Logon 1–3 seconds 3–6 seconds 120–300+ seconds
Outlook .OST & OneDrive Fully supported (Profile or ODFC) Supported, prone to index breaks Unsupported (AppData\Local skipped)
Multi-Host HA Replication Native Cloud Cache (multi-SMB) Requires SOFS / Storage Replica DFS-R (high corruption risk)
Custom Folder Exclusions Granular redirections.xml Limited to Collection GUI list GPO registry exclusions only

Storage Sizing, ODFC Split Containers, and Cloud Cache Design

Performance in FSLogix hinges entirely on your SMB storage backend and network fabric. Each active RDS user generates roughly 10 to 25 steady-state IOPS during normal Office/browser work, spiking to 50–100+ IOPS during morning logon storms and Outlook OST indexing. For a 100-user RDS farm, size your dedicated file server with enterprise NVMe drives (using Storage Spaces mirroring or ReFS) and 10 GbE or 25 GbE private VLAN uplinks with SMB Multichannel enabled.

For larger deployments, split user data into two separate containers: the Profile Container (Profile_%USERNAME%.vhdx) for Windows settings, Registry hive, and AppData, and the Office 365 Data Container (ODFC) (ODFC_%USERNAME%.vhdx) exclusively for Outlook OSTs, OneDrive cache, and Teams data. Splitting them lets you back up the small, critical Profile Container hourly while excluding the easily re-hydrated ODFC cache from expensive offsite snapshot retention.

If your RDS farm spans two bare-metal file servers for high availability, evaluate FSLogix Cloud Cache (CCDLocations) rather than DFS-R. Never replicate open FSLogix VHDX files with DFS-R—DFS-R locks files and causes split-brain corruption. Cloud Cache writes synchronously or asynchronously from the RDS host to multiple SMB targets simultaneously while serving reads from a fast local NVMe cache on the session host itself.

When configuring Cloud Cache on bare-metal RDS hosts, reserve sufficient local NVMe capacity on the session host’s C:\ProgramData\FSLogix\Cache directory—typically 10 GB to 15 GB per concurrent user—because Cloud Cache stages active profile blocks locally before flushing to your remote SMB providers. Also configure ClearCacheOnLogoff = 1 so disconnected user caches do not silently exhaust the session host’s OS drive over multi-week uptime cycles. If your RDS farm runs across two regional racks, place the primary SMB provider on the same 10/25 GbE VLAN as the session hosts and designate the secondary rack as an asynchronous failover target; this keeps interactive write latency under 1 millisecond while still surviving an entire file server reboot.

Finally, size your SMB server’s NTFS allocation unit and antivirus exclusions carefully. Format the volume hosting \\FS01\FSLogixProfiles$ with a 64 KB allocation unit size for large sequential VHDX I/O, disable Windows Search indexing on the SMB share root (FSLogix manages per-user search roaming inside the container), and exclude *.vhdx, *.vhd, and frxsvc.exe from real-time Microsoft Defender scanning on both the RDS Session Hosts and the SMB file server.

Automating FSLogix Configuration and Redirections via PowerShell

After installing the FSLogix Apps agent on each RDS Session Host, configure the profile engine via registry keys under HKLM:\SOFTWARE\FSLogix\Profiles (or via FSLogix ADMX Group Policy templates). Always set VolumeType = "VHDX", enable Dynamic = 1 so containers grow on demand rather than pre-allocating 30 GB per user, and set PreventLoginWithFailure = 1 if you prefer blocking temporary local profiles that confuse users into saving files that vanish at logoff.

Equally important is deploying a lean redirections.xml file on your SMB share. Excluding transient browser caches (Chrome\User Data\Default\Cache, Edge\User Data\Default\Cache), crash dumps, and Temp folders prevents VHDX files from ballooning unnecessarily over time:

PowerShell / CMD

# Configure FSLogix Profile Containers on an RDS Session Host
$FslReg = "HKLM:\SOFTWARE\FSLogix\Profiles"
New-Item -Path $FslReg -Force | Out-Null

$Settings = @{
  Enabled                 = 1
  VHDLocations            = "\\FS01.corp.local\FSLogixProfiles$"
  VolumeType              = "VHDX"
  SizeInMBs               = 30720        # 30 GB max dynamic container
  IsDynamic               = 1
  FlipFlopProfileDirectoryName = 1       # Creates Username_SID folder (easier to browse)
  DeleteLocalProfileWhenVHDShouldApply = 1
  PreventLoginWithFailure = 1
  LockedRetryCount        = 6
  LockedRetryInterval     = 5
  RedirXMLSourceFolder    = "\\FS01.corp.local\FSLogixConfig$"
}

foreach ($Key in $Settings.Keys) {
  $Val = $Settings[$Key]
  $Type = if ($Val -is [int]) { "DWord" } else { "String" }
  New-ItemProperty -Path $FslReg -Name $Key -Value $Val -PropertyType $Type -Force | Out-Null
}

# Verify FSLogix Filter Drivers are attached
fltmc filters | Select-String "frx"

Remember to add your RDS Session Host computer accounts (or an AD group containing them) with Modify NTFS and Share permissions on \\FS01.corp.local\FSLogixProfiles$, while granting Authenticated Users Creator Owner permissions so users can only access their own VHDX folder.

Troubleshooting Locked VHDX Containers and Reclaiming Bloat

Two operational issues account for 90% of FSLogix escalations: stale SMB file locks after an RDS host crashes, and VHDX bloat because Windows does not automatically shrink dynamic VHDX files when users delete files inside their profile.

When a session host reboots unexpectedly, the SMB server (FS01) may hold an open file handle on Profile_jdoe.vhdx for several minutes. When the user reconnects to a healthy RDS host, FSLogix retries according to LockedRetryCount and then fails logon. Instead of rebooting the file server, inspect open SMB handles on the file server and close the orphaned session cleanly. For VHDX bloat, schedule a weekend maintenance script using Optimize-VHD (requires the Hyper-V PowerShell module or diskpart compact vdisk) against unmounted containers:

PowerShell / CMD

# 1. On the SMB File Server: Find and close a stale VHDX lock for user 'jdoe'
Get-SmbOpenFile | Where-Object { $_.Path -like "*jdoe*" -and $_.Path -like "*.vhdx" } |
  Select-Object FileId, ClientUserName, ClientComputerName, Path

# Force-close ONLY if confirmed the client RDS host has crashed or logged off
Get-SmbOpenFile | Where-Object { $_.Path -like "*Profile_jdoe.vhdx" } | Close-SmbOpenFile -Force

# 2. On the RDS Host: Inspect FSLogix operational logs for attach/detach errors
Get-WinEvent -LogName "FSLogix-Apps/Operational" -MaxEvents 25 |
  Where-Object { $_.LevelDisplayName -in @("Error","Warning") } |
  Select-Object TimeCreated, Id, Message

# 3. Weekend VHDX Compaction on File Server (skips currently locked/mounted files)
Get-ChildItem "D:\FSLogixProfiles" -Filter "*.vhdx" -Recurse | ForEach-Object {
  try {
    Optimize-VHD -Path $_.FullName -Mode Full -ErrorAction Stop
    Write-Host "Compacted: $($_.Name)"
  } catch {
    Write-Warning "Skipped active/locked VHDX: $($_.Name)"
  }
}

If your RDS farm also uses RD Gateway with MFA and NLA, verify that your antivirus exclusions on every session host skip *.vhdx, *.vhd, and the FSLogix driver processes—real-time AV scanning of mounted VHDX streams is the most common cause of mysterious RDS freezes.

Resolving Orphaned VHDX Locks and SMB Handle Leaks on Session Hosts

When an RDS Session Host crashes or loses network connectivity mid-session, the SMB file server hosting FSLogix profile containers can retain an orphaned open file handle on Profile_*.vhdx. When the user reconnects to a healthy host, FSLogix fails with error code 0x00000020 (sharing violation) and drops the user into a temporary profile unless stale SMB handles are cleared.

PowerShell / CMD

# Locate and close orphaned FSLogix VHDX SMB handles on the file server
Get-SmbOpenFile | Where-Object Path -like "*Profile_*.vhdx" |
  Select-Object FileId, ClientComputerName, ClientUserName, Path | Format-Table -AutoSize

# Close a confirmed stale handle (replace FileId after verifying user session is dead)
# Close-SmbOpenFile -FileId 1234567890 -Force

To roll back a problematic FSLogix Agent update that causes black-screen logins or Office 365 token loss, uninstall the new agent cleanly, reboot the Session Host in drain mode (change logon /drain), and reinstall the validated N-1 version while keeping redirections.xml and Cloud Cache registry keys intact.

Optimizing FSLogix VHDX Compaction and Antivirus Exclusions

Over time, dynamic FSLogix Profile_*.vhdx containers grow as users cache Outlook OSTs and browser profiles, even after files are deleted inside the session. Schedule off-hours VHDX compaction using frx.exe or Invoke-FslShrinkDisk, and exclude .vhdx, .lock, and .meta files from real-time antivirus scanning on both the RDS Session Host and the SMB file server.

  • Prevent Temp Profile Loops: Set PreventLoginWithTempProfile = 1 for critical apps so users receive a clear error rather than saving work to an ephemeral local folder.
  • Use Cloud Cache Only When Needed: On single-datacenter bare-metal SMB shares, standard VHDLocations avoids unnecessary local write amplification.

Frequently Asked Questions

Can I migrate existing User Profile Disks (UPD) to FSLogix without losing user data?

Yes. Microsoft and community PowerShell tools (such as frx.exe copy-profile or custom Robocopy-to-VHDX scripts) can convert existing UPD VHDX contents into FSLogix Profile Containers during a staged cutover window.

Should I store FSLogix VHDX containers on the same RDS Session Host?

Only in single-server RDS deployments. In multi-host farms, store containers on a dedicated NVMe SMB 3.1.1 file server (or Scale-Out File Server cluster) so users can land on any session host seamlessly.

Why does FSLogix fail to shrink VHDX files after a user empties their Outlook Deleted Items?

Dynamic VHDX files expand automatically as blocks are written, but Windows does not reclaim zeroed blocks at logoff unless you enable FSLogix VHDX compaction (VHDCompactDisk = 1 in newer releases) or run scheduled Optimize-VHD passes.

Is DFS Replication (DFS-R) supported for FSLogix Profile Containers?

No. Never use DFS-R on live FSLogix VHDX shares. Use FSLogix Cloud Cache (CCDLocations) for multi-site or redundant SMB storage targets.

Which antivirus exclusions are mandatory on RDS Session Hosts running FSLogix Profile Containers?

Exclude all FSLogix .vhd and .vhdx container files, .lock and .meta sidecar files, and the C:\Program Files\FSLogix directory from real-time file-level antivirus scanning. Scanning mounted VHDX images as flat files causes severe SMB handle contention, logon freezes, and orphaned profile locks during concurrent user sign-ins.

Build Low-Latency RDS Farms on NVMe Windows Dedicated Servers

Host high-density Remote Desktop Session Hosts and NVMe SMB 3.1.1 FSLogix storage on single-tenant hardware with 10/25 GbE private networking and predictable SPLA or BYOL licensing.

Configure Your RDS Dedicated Server