Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this tutorial, you learn how to create and implement redirections.xml.
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.
FSLogix redirections.xml provides functionality that allows some parts of a user's profile to be excluded from a user's container. This tutorial provides you with the steps to create your own .xml file to exclude the recommended Microsoft Teams folders.
In this tutorial, you:
- Exclude recommended Microsoft Teams folders for Virtualized Desktop Infrastructure (VDI).
- Verify that the .xml file was copied from the source folder.
- Verify that the folders were excluded.
Prerequisites
- Review Classic Teams for Virtualized Desktop Infrastructure.
- Review Upgrade to new Teams for Virtualized Desktop Infrastructure.
Create the redirections.xml file
Select Start.
Enter notepad in the Start menu search box.
Select Notepad on the Start menu.
Figure 1: Notepad on the Start menu
Copy the .xml outline to Notepad.
You can find information on
ExcludeCommonFolder
in the Custom profile redirections.xml article.<?xml version="1.0" encoding="UTF-8"?> <FrxProfileFolderRedirection ExcludeCommonFolders="0"> <Excludes> <Exclude Copy="0">AppData\Roaming\Microsoft\Teams\media-stack</Exclude> <Exclude Copy="0">AppData\Local\Microsoft\Teams\meeting-addin\Cache</Exclude> <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> </Excludes> <Includes> </Includes> </FrxProfileFolderRedirection>
Select File > Save As.
Go to the file share where the .xml file source is saved.
Enter redirections.xml1 for the file name.
Select All Files (.) for the Save As type.
Select Save.
Note
Users require read access to the file share where the .xml file is stored. Users without read access can't copy the .xml file during sign-in.
Configure redirections.xml on the virtual machine
Sign in to the virtual machine as a local administrator or with an account that's a member of the local administrators group.
Enter registry editor in the search box.
Select Registry Editor on the Start menu.
Figure 2: Registry Editor on the Start menu
Go to
HKEY_LOCAL_MACHINE\SOFTWARE\FSLogix\Profiles
.Add these settings:
- Value name:
RedirXMLSourceFolder
- Value type:
REG_SZ
- Value:
\\<server-name>\<share-name>
2
Figure 3: Registry profiles
- Value name:
Verify redirections.xml is copied and excluding folders
Go to C:\ProgramData\FSLogix\Logs\Profile.
Open
Profile-%date%.log
.Find the section that starts with
[INFO] ===== Begin Session: StartShell
.If the redirections.xml file was successful, the log should be similar to the logs shown here:
[23:36:31.364][tid:00000f10.00003bdc][INFO] Configuration Read (REG_SZ): SOFTWARE\FSLogix\Profiles\RedirXMLSourceFolder. Data: \\<stg-acct>.file.core.windows.net\containers [23:36:31.364][tid:00000f10.00003bdc][INFO] Attempting to copy: "\\<stg-acct>.file.core.windows.net\containers\Redirections.xml" to: "C:\Users\%username%\AppData\Local\FSLogix\Redirections.xml" [23:36:31.396][tid:00000f10.00003bdc][INFO] Redirections.xml copy success [23:36:31.396][tid:00000f10.00003bdc][INFO] Reading profile folder redirections [23:36:31.411][tid:00000f10.00003bdc][INFO] Creating base folders for profile folder redirections [23:36:31.411][tid:00000f10.00003bdc][INFO] Creating base folder 'AppData\Roaming\Microsoft\Teams\media-stack\' [23:36:31.427][tid:00000f10.00003bdc][INFO] Creating base folder 'AppData\Local\Microsoft\Teams\meeting-addin\Cache\' [23:36:31.427][tid:00000f10.00003bdc][INFO] Creating base folder 'AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\Logs\' [23:36:31.427][tid:00000f10.00003bdc][INFO] Creating base folder 'AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\PerfLogs' [23:36:31.427][tid:00000f10.00003bdc][INFO] Creating base folder 'AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView\WV2Profile_tfw\WebStorage' [23:36:32.099][tid:00000f10.00003bdc][INFO] Adding exclude rule for folder 'AppData\Roaming\Microsoft\Teams\media-stack\' [23:36:32.099][tid:00000f10.00003bdc][INFO] Added redirection C:\Users\%username%\AppData\Roaming\Microsoft\Teams\media-stack -> C:\Users\local_%username%\AppData\Roaming\Microsoft\Teams\media-stack [23:36:32.099][tid:00000f10.00003bdc][INFO] Adding exclude rule for folder 'AppData\Local\Microsoft\Teams\meeting-addin\Cache\' [23:36:32.099][tid:00000f10.00003bdc][INFO] Added redirection C:\Users\%username%\AppData\Local\Microsoft\Teams\meeting-addin\Cache -> C:\Users\local_%username%\AppData\Local\Microsoft\Teams\meeting-addin\Cache [23:36:32.099][tid:00000f10.00003bdc][INFO] Adding exclude rule for folder 'AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\Logs\' [23:36:32.099][tid:00000f10.00003bdc][INFO] Added redirection C:\Users\%username%\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\Logs -> C:\Users\local_%username%\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\Logs [23:36:32.099][tid:00000f10.00003bdc][INFO] Adding exclude rule for folder 'AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\PerfLogs\' [23:36:32.099][tid:00000f10.00003bdc][INFO] Added redirection C:\Users\%username%\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\PerfLogs -> C:\Users\local_%username%\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\PerfLogs [23:36:32.099][tid:00000f10.00003bdc][INFO] Adding exclude rule for folder 'AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView\WV2Profile_tfw\WebStorage\' [23:36:32.099][tid:00000f10.00003bdc][INFO] Added redirection C:\Users\%username%\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView\WV2Profile_tfw\WebStorage -> C:\Users\local_%username%\AppData\Local\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\EBWebView\WV2Profile_tfw\WebStorage
1 The file name isn't case sensitive.
2 Don't include the file name. The path could also be a local path if the .xml file is part of a gold image.