FSLogix Redirections.xml: Location, Example and New Teams Exclusions
By Jay H.Published Updated 9 min read
Jay H. · Founder, Sessionright
Founder of Sessionright. Twenty years running Citrix, NetScaler, Citrix Cloud, NetScaler Console, Azure and Azure Virtual Desktop estates; writes the guides and reviews the platform's rules.
Users having trouble loading their profiles? Talk it through with a Sessionright engineer: 15 minutes, free.
FSLogix profile containers grow because everything under %userprofile% lands in the VHD(x), including caches and logs nobody needs on the next sign-in. redirections.xml is the documented way to keep selected folders out of the container. It is also an easy way to break an application. Microsoft's FSLogix FAQ (updated 4 November 2026) says plainly that "FSLogix doesn't provide recommended values for the redirections.xml file" and leaves it to application owners to document what can be excluded.
This guide covers what the file does, where it lives, how RedirXMLSourceFolder delivers it, a minimal example built only from elements and paths Microsoft documents, and the Teams, new Outlook and OneDrive guidance as it stands today. At the end you will have a working file, a registry value and a log check that proves it loaded.
What redirections.xml does and the documented syntax
Microsoft's redirections.xml reference describes the file as a list of profile paths that FSLogix redirects out of the container into a local folder, C:\Users\local_%username%. The file is processed at sign-in and sign-out, so an edit made while a user is signed in only takes effect at their next sign-in. The same page limits its legitimate use to two cases: stateless data such as browser caches, and applications that must live on %SystemDrive%, which it calls rare.
The file has an XML declaration and these parts:
| Item | Type | What it does |
|---|---|---|
FrxProfileFolderRedirection |
Element | Root element, used once |
ExcludeCommonFolders |
Attribute on the root | Bitmask of well-known folders to keep out of the container |
Excludes / Exclude |
Elements | Each Exclude is one path to redirect out |
Copy |
Attribute on Exclude |
How data moves between container and local folder (omitted means 0) |
Includes / Include |
Elements | Keeps a subfolder of an excluded path inside the container (Copy isn't used) |
Paths in Exclude and Include are relative to %userprofile% and must not include C:\Users\%username%.
ExcludeCommonFolders bitmask
Add the values for every folder you want out of the container; Microsoft's example is 7 for Contacts, Desktop and Documents (reference).
| Value | Folder |
|---|---|
| 1 | Contacts |
| 2 | Desktop |
| 4 | Documents |
| 8 | Downloads |
| 16 | Links |
| 32 | Music |
| 64 | Pictures and Videos |
| 128 | Folders used by Low Integrity Level processes, such as AppData\LocalLow |
On Windows 8 and later, Low Integrity Level folders are always redirected to local_%username% regardless of this value.
Copy values
Copy |
At sign-in | At sign-out | Microsoft's note |
|---|---|---|---|
| 0 | Empty folder created locally | Local data removed | Most common; existing container data at that path is not removed |
| 1 | Container data copied to the local folder | New data lost | Copies from the container on every sign-in |
| 2 | Empty folder created locally | Local data copied into the container | Don't use unless directed by a Microsoft support engineer |
| 3 | Container data copied out | All data copied back in | Combines 1 and 2; I/O is still needed for the copies |
Two precedence rules matter when you debug. If the same folder appears in both Exclude and Include, the exclude wins. An Include only works if its parent folder already exists in the container, so a brand-new profile may not honour an include for an application the user has never opened.
Where redirections.xml lives and the RedirXMLSourceFolder setting
There are two copies. The source is usually a file share, named by RedirXMLSourceFolder. The user copy sits at %userprofile%\AppData\Local\FSLogix\redirections.xml inside the container. At sign-in FSLogix checks the source and copies the file only if it differs from the user's copy (reference).
The configuration reference defines RedirXMLSourceFolder as REG_SZ with no default. The path accepts FSLogix custom variables and any environment variable available during sign-in, and it can be local (C:\Windows\System32 is Microsoft's example), which suits a file baked into a golden image.
Steps to deploy the file
-
Create
redirections.xmlin a text editor and save it with All Files as the type. The tutorial notes that the file name isn't case sensitive. -
Place it on the source share. Users need read access to copy it at sign-in, and the reference says they should have only read permission on the file.
-
On each session host (or the image), set the registry value under
HKEY_LOCAL_MACHINE\SOFTWARE\FSLogix\Profiles:reg add "HKLM\SOFTWARE\FSLogix\Profiles" /v RedirXMLSourceFolder /t REG_SZ /d "\\<server-name>\<share-name>" /f -
Sign out and sign in as a test user, then check the profile log (next section).
If your source share is on SMB storage, note the banner Microsoft now carries on the FSLogix pages: the April 2026 Windows Server update changes the default Kerberos encryption type from RC4 to AES-SHA1, and shares not upgraded to AES-SHA1 might have access issues (reference).
A minimal example built only from documented elements
This file excludes only folders that Microsoft's new Teams VDI page lists under "Recommended for exclusion", using Copy="0". The Teams table gives paths relative to AppData\Local\Packages\MSTeams_8wekyb3d8bbwe, so each is prefixed with that folder, the same form the FSLogix tutorial uses. The Start menu entry is the one the new Teams for VDI page recommends for a missing Teams icon.
<?xml version="1.0" encoding="UTF-8"?>
<FrxProfileFolderRedirection ExcludeCommonFolders="0">
<Excludes>
<Exclude Copy="0">AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\Logs</Exclude>
<Exclude Copy="0">AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\PerfLogs</Exclude>
<Exclude Copy="0">AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView\WV2Profile_tfw\WebStorage</Exclude>
<Exclude Copy="0">AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView\WV2Profile_tfw\GPUCache</Exclude>
<Exclude Copy="0">AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\TempState</Exclude>
</Excludes>
<Includes>
</Includes>
</FrxProfileFolderRedirection>
Check two details on one of your own hosts before rollout:
- The perf log folder is written
PerfLogsin the FSLogix tutorial's XML andPerfLogin the Teams exclusion table. RunGet-ChildItem "$env:LOCALAPPDATA\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams"as a signed-in user and use the name that exists. - On Windows Server 2019 only, Microsoft also lists
AppData\Local\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempStatefor the same Start menu issue.
Microsoft's own sample in the reference uses ExcludeCommonFolders="49" and invented Contoso paths, and the page says it "should not be used in any production environment".
Verify the file loaded and the exclusions applied
-
Open
C:\ProgramData\FSLogix\Logs\Profile\Profile-%date%.logand find===== Begin Session: StartShell(full log guide: /blog/fslogix-logs-location). -
Look for the lines the tutorial shows on success:
Configuration Read (REG_SZ): SOFTWARE\FSLogix\Profiles\RedirXMLSourceFolder,Redirections.xml copy success, thenAdding exclude rule for folderandAdded redirection C:\Users\%username%\... -> C:\Users\local_%username%\...per entry. A quick filter:Select-String -Path 'C:\ProgramData\FSLogix\Logs\Profile\Profile*.log' -Pattern 'Redirections.xml|exclude rule|Added redirection' -
In the user's session, run
frx list-redirectsfromC:\Program Files\FSLogix\Appsto list the active redirections (frx reference).
If none of those lines appear, the FAQ names the three usual causes: RedirXMLSourceFolder contains the file name, the user lacks read access to the share, or the share path can't be resolved (network, DNS or a bad name) (FAQ). If users then hit temp profiles or slow sign-ins, work through /blog/fslogix-profile-troubleshooting and /blog/fslogix-logon-failure.
Microsoft's stated recommendations, and its warning about over-excluding
Microsoft is consistent across its pages, and none of it encourages long exclusion lists:
- "Data in the user's profile isn't designed to be removed or excluded. Unless you have intimate knowledge of the data in the profile or the application, don't exclude it from the container" (reference).
- "Using non-Microsoft redirections.xml files can exclude items that can affect proper operation of the operating system or applications in your environment. Use exclude and include statements sparingly" (tutorial).
- "Don't exclude user profile data for applications unless the application owner has documented the data can be excluded" (FAQ).
Changes are also sticky. Removing an entry leaves its folders in the VHD(x), and deleting or renaming the source file does not remove it from users' containers. To withdraw custom redirections, Microsoft says to clear the file's contents and save it at the source so the empty version copies in at the next sign-in. If you need local_%username% to survive sign-out, that is the separate KeepLocalDir setting (default 0, deleted at sign-out) in the configuration reference.
Teams, new Outlook and OneDrive entries
New Teams
The new Teams for VDI page splits folders into two groups:
| Group | Folders (under MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams) |
Documented impact |
|---|---|---|
| Recommended for exclusion | Logs, PerfLog, EBWebView\WV2Profile_tfw\WebStorage, EBWebView\WV2Profile_tfw\GPUCache |
None, except embedded apps such as SharePoint may load slower after WebStorage is cleared |
| Evaluate and test first | Service Worker\CacheStorage, Code Cache, IndexedDB, Cache (all under EBWebView\WV2Profile_tfw) |
Slower launches, no offline access, chat data downloaded again, profile pictures downloaded again |
The same page says the top-level folders under AppData\Local\Packages\MSTeams_8wekyb3d8bbwe (AC, AppData, LocalCache, LocalState, RoamingState, Settings, SystemAppData, TempState) must be real directories that roam with the profile, and that the meeting-addin folder under TeamsSharedConfig shouldn't be persisted. Microsoft recommends FSLogix 2210 HotFix 4 (2.9.8884.27471) for Teams in VDI; the Teams on Azure Virtual Desktop page sets 2210 hotfix 3 (2.9.8716.30241) as the minimum for new Teams.
The FSLogix tutorial's sample still carries two classic Teams paths (AppData\Roaming\Microsoft\Teams\media-stack and AppData\Local\Microsoft\Teams\meeting-addin\Cache). The classic Teams page the FAQ links to now redirects to Microsoft's newer VDI optimization page, which doesn't list them, so keep them only if classic Teams is still on your hosts.
If you use ODFC containers, redirections.xml won't touch Teams data at all. Set IncludeTeams (default 0) instead; the Teams page notes Profile plus ODFC customers still need it.
New Outlook and OneDrive
We found no Microsoft page that documents a redirections.xml exclusion for new Outlook or OneDrive, so by the FAQ's rule, exclude nothing for them. What Microsoft does document is where the data lives and how ODFC handles it (configuration reference):
IncludeOutlook(default1) covers classic and new Outlook in ODFC. New Outlook data sits in%LocalAppData%\Packages\Microsoft.OutlookForWindows_8wekyb3d8bbwe\and%LocalAppData%\Microsoft\olk.IncludeOneDrive(default1) keeps the OneDrive cache in the ODFC container. OneDrive doesn't support multiple concurrent connections using the same profile.
For the wider pool picture, see /azure-virtual-desktop.
FAQ
Where is the FSLogix redirections.xml located?
The source is wherever RedirXMLSourceFolder points, usually a share. The working copy is %userprofile%\AppData\Local\FSLogix\redirections.xml inside the user's profile container (reference).
What is the registry setting for FSLogix redirections.xml?
RedirXMLSourceFolder, a REG_SZ under HKLM\SOFTWARE\FSLogix\Profiles, holding a folder path without the file name (configuration reference).
What should I exclude for new Teams with FSLogix?
Only what Microsoft lists as recommended: the Teams Logs and PerfLog folders, WebStorage, GPUCache, and the Start menu TempState folder. Microsoft says it doesn't recommend excluding other directories (new Teams for VDI).
Does redirections.xml work with ODFC containers?
No. Microsoft states it applies only to profile containers and has no effect on ODFC containers (reference).
Does adding an exclusion shrink an existing profile?
No. Data already in the VHD(x) at that path stays there; only new data goes to local_%username%. Removing an entry later doesn't remove anything from the VHD(x) either (reference).
Does FSLogix publish a recommended redirections.xml?
No. The FAQ says FSLogix doesn't provide recommended values and relies on application owners to document what can be excluded (FAQ).
Want a second pair of eyes?
A Sessionright assessment is a read-only review of your Azure Virtual Desktop environment, and every finding comes back with the evidence behind it. Nothing changes without a person approving it, and every approved change is logged (how we handle that). If you would rather talk it through, book a 15-minute call: no install, no sales deck.
Sources
- Microsoft Learn: Custom profile redirections.xml
- Microsoft Learn: Tutorial: Create and implement redirections.xml
- Microsoft Learn: FSLogix FAQ: Redirects or redirections.xml
- Microsoft Learn: FSLogix configuration setting reference
- Microsoft Learn: frx command-line utility
- Microsoft Learn: Install Teams for Virtualized Desktop Infrastructure (VDI)
- Microsoft Learn: Use Microsoft Teams on Azure Virtual Desktop
Want this watched for you, with the fix drafted before you ask?
Sessionright is an AI operator for Azure Virtual Desktop: it checks session hosts, scaling plans, FSLogix and cost continuously, attaches the evidence, and proposes fixes for a named approver to sign. It has run against simulated estates and Sessionright's own Azure lab tenant so far. To see what it finds on your own estate, run the free assessment: one command in Azure Cloud Shell reads your estate, never changes it, and writes an HTML report in about five minutes for a typical estate. Your estate data stays with you unless you choose to email yourself the HTML report through Sessionright. Design partner program: 90-day free Operator pilot, then 50% off year 1; list price at signing held to month 24. Engineer-led assessments are 50% off for design partners. Outside the program the onboarding assessment is $2,500, up to 500 users, one tenant.
Not ready for that? Talk to a Sessionright engineer: 15 minutes, free, and you leave with a next step.
Or get the next guide by email. One email per new guide, no marketing list.
Related guides
- FSLogix 26.08 Known Issues and Release Notes: What Changed
What FSLogix 26.08 changes per Microsoft's release notes, which known issues still apply, how to check your version and how to deploy or roll it back.
- FSLogix Logs Location: Where They Are and How to Read Them
Find FSLogix logs on a session host, set LoggingLevel, LogDir and retention, read one sign-in in the Profile log and collect everything for Microsoft support.
- FSLogix Cloud Cache: How It Works and When Not to Use It
How FSLogix Cloud Cache works: CCDLocations syntax, local cache sizing, what happens when a provider is unreachable, and when a plain share is better.
- FSLogix Azure Files and NetApp Files: Permissions and Kerberos
Set up FSLogix profile shares on Azure Files or Azure NetApp Files: Microsoft's sizing guidance, the documented share and NTFS ACLs, Entra Kerberos and costs.
- FSLogix Logon Failure: Temp Profiles, Black Screens and Fixes
Fix an FSLogix logon failure: tell a temp profile from a blocked sign-in or a black screen, read the Profile log, then clear locks, permissions and full disks.
Citrix and NetScaler are trademarks of Citrix Systems, Inc. and/or its affiliates. Azure is a trademark of the Microsoft group of companies. Sessionright is not affiliated with or endorsed by Cloud Software Group, Citrix or Microsoft.