WVD - FSLogix - Reduce profile container size - exclude Teams Cache with redirections.xml

%3CLINGO-SUB%20id%3D%22lingo-sub-1503683%22%20slang%3D%22en-US%22%3EWVD%20-%20FSLogix%20-%20Reduce%20profile%20container%20size%20-%20exclude%20Teams%20Cache%20with%20redirections.xml%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1503683%22%20slang%3D%22en-US%22%3E%3CP%3EWindows%20Virtual%20Desktop%3C%2FP%3E%3CP%3E%3CU%3ETeams%20cached%20data%20causes%20large%20Profile%20Container!%20Take%20action%20and%20save%20Azure%20File%20Share%20space!%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EUnderstanding%20user%20profiles%3A%20WVD%20and%20FSLogix%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWith%20Windows%20Virtual%20Desktop%20we%20can%20provide%20virtual%20workspaces%20(Full%20Desktop%20experience)%20or%20applications%20only%20(RemoteApp).%20Conditional%20access%20in%20conjunction%20with%20Azure%20Multi%20Factor%20Authentication%20the%20user%20will%20get%20a%20safe%20sign%20in%20experience.%20In%20order%20to%20save%20user%20profile%20settings%20it%20is%20highly%20recommended%20to%20configure%20FSLogix%20Profile%20Containers.%20Each%20time%20the%20user%20signs%20in%20the%20full%20profile%20will%20be%20loaded%20(in%20the%20background%20the%20VHD%2FVHDX%20will%20be%20attached%20to%20the%20Windows%2010%20multi-session%20host)%20without%20the%20needs%20of%20reconfiguring%20the%20Outlook%20profile%20for%20instance.%3C%2FP%3E%3CP%3E%3CSTRONG%3EIssue%3A%20Newly%20created%2C%20or%20clean%2C%20user%20profile%20approximately%204.5GB%20in%20size%3F!%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EOnce%20Teams%20is%20installed%20according%20to%20the%20Teams%20for%20VDI%20installation%20guidelines%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fteams-on-wvd%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esource%3C%2FA%3E)%20and%20the%20user%20starts%20Teams%20for%20the%20first%20time%20I%20noticed%20that%20the%20profile%20container%20size%20significantly%20increased%20within%20minutes.%20Weird%2C%20right%3F!%20%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22raymondesray_6-1593766627430.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203069i8E6BA4F6FFE85929%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22raymondesray_6-1593766627430.png%22%20alt%3D%22raymondesray_6-1593766627430.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3EWindows%20reports%20that%20the%20profile%20size%20of%20the%20user%20is%20only%20425MB%20in%20size.%20FSLogix%20agent%20reports%20a%204%2C4GB%20profile%20container.%20In%20order%20to%20validate%2C%20I%20double%20checked%20the%20size%20in%20Azure%20Files%20as%20well%20which%20also%20shows%204%2C4GB.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22raymondesray_7-1593766657039.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203070iA5E1B4B4E5DEA47B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22raymondesray_7-1593766657039.png%22%20alt%3D%22raymondesray_7-1593766657039.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHow%20is%20this%20even%20possible%3F!%20It%E2%80%99s%20a%20clean%20profile!%20After%20further%20investigation%20I%20found%20out%20a%20uservoice%20topic%20already%20exists%20where%20this%20issue%20is%20reported.%20%3CA%20href%3D%22https%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F555103-public%2Fsuggestions%2F34622569-teams-windows-client-greatly-increases-roaming-pro%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmicrosoftteams.uservoice.com%2Fforums%2F555103-public%2Fsuggestions%2F34622569-teams-windows-client-greatly-increases-roaming-pro%3C%2FA%3E%20%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20cause%20was%20explained%20and%20confirmed%20by%20many%20others.%20I%20also%20tested%20this%20myself%2C%20a%20host%20pool%20with%20Teams%20and%20a%20host%20pool%20without%20Teams.%20Without%20Teams%20the%20user%20profile%20container%20was%20approximately%20400MB%20in%20size.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhich%20options%20do%20we%20have%20now%3F!%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3EDont%E2%80%99t%20use%20Teams%20on%20WVD.%20It%E2%80%99s%20just%20an%20option%2C%20but%20obviously%20not%20recommended%20in%20this%20era%20where%20we%20collaborate%20as%20much%20as%20possible%20in%20an%20efficient%20manner.%3C%2FLI%3E%3CLI%3EUse%20Teams%20web%20client.%3C%2FLI%3E%3CLI%3EAccept%20the%20issue%20and%20wait%20for%20Microsoft%20to%20get%20this%20resolved%3C%2FLI%3E%3CLI%3EOptimize%20FSLogix%2C%20create%20exclusions%20for%20Team%20cached%20data%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EFix%3A%20Optimize%20FSLogix%2C%20create%20exclusions%20for%20Teams%20cached%20data%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20next%20step%20by%20step%20will%20explain%20the%20solution%20that%20worked%20and%20has%20been%20tested%20succesfully.%20Teams%20performance%20is%20still%20very%20good%2C%20as%20well%20for%20stability.%20More%20information%20about%20how%20to%20create%20exclusions%20can%20be%20found%20here%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Ffslogix%2Fmanage-profile-content-cncpt%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Ffslogix%2Fmanage-profile-content-cncpt%3C%2FA%3E%3C%2FSPAN%3E%20.%3C%2FP%3E%3CP%3EThings%20to%20accept%3B%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20exclusions%20file%20must%20be%20named%20%E2%80%9Credirections.xml%E2%80%9D%3C%2FLI%3E%3CLI%3EFSLogix%20Agent%20is%20installed%20on%20the%20WVD%20virtual%20machine.%20Settings%20can%20be%20applied%20manually%20via%20the%20registry%20or%20Group%20Policy%20based%20on%20the%20FSLogix%20GPO%20template.%20I%20choose%20GPO%20method%2C%20because%20this%20will%20cover%20multiple%20WVD%20virtual%20machines%20at%20once.%3C%2FLI%3E%3CLI%3EUnfortunately%20after%20applying%20the%20redirections.xml%20file%2C%20the%20profile%20container%20does%20not%20shrink%20in%20size.%20In%20other%20words%2C%20delete%20the%20existing%20profile%20container.%20But%2C%20communication%20with%20your%20users%20is%20key!%3C%2FLI%3E%3C%2FUL%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22642%22%3E%3CP%3E%3CSTRONG%3EOptimize%20FSLogix%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2231%22%3E%3CP%3E1%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22612%22%3E%3CP%3EI%20have%20prepared%20the%20XML%20file.%20Copy%20below%20text%20into%20a%20new%20text%20file%2C%20save%20this%20as%20%E2%80%9Credirections.xml%E2%80%9D%20and%20store%20the%20file%20in%20a%20file%20share%20that%20can%20be%20accessed%20by%20the%20user%20(read%20permissions%20is%20sufficient!).%20During%20sign%20on%2C%20the%20FSLogix%20copies%20the%20XML%20file%20to%20%25localappdata%25%5CFSLogix%20.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CFRXPROFILEFOLDERREDIRECTION%20excludecommonfolders%3D%22%26quot%3B0%26quot%3B%22%3E%3C%2FFRXPROFILEFOLDERREDIRECTION%3E%3C%2FP%3E%3CP%3E%3CEXCLUDES%3E%3C%2FEXCLUDES%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CLocal%5CSquirrelTemp%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CLocal%5CMicrosoft%5CTeams%5CCurrent%5CLocales%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CLocal%5CMicrosoft%5CTeams%5CPackages%5CSquirrelTemp%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CLocal%5CMicrosoft%5CTeams%5Ccurrent%5Cresources%5Clocales%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CLocal%5CMicrosoft%5CTeams%5CCurrent%5CLocales%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CRoaming%5CMicrosoft%5CTeams%5CService%20Worker%5CCacheStorage%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CRoaming%5CMicrosoft%5CTeams%5CApplication%20Cache%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CRoaming%5CMicrosoft%5CTeams%5CCache%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CRoaming%5CMicrosoft%20Teams%5CLogs%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3CEXCLUDE%20copy%3D%22%26quot%3B0%26quot%3B%22%3EAppData%5CRoaming%5CMicrosoft%5CTeams%5Cmedia-stack%3C%2FEXCLUDE%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2231%22%3E%3CP%3E2%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22612%22%3E%3CP%3EI%20stored%20the%20XML%20file%20in%20NETLOGON%20location.%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22raymondesray_8-1593766730798.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203071i235246E0BFA3365F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22raymondesray_8-1593766730798.png%22%20alt%3D%22raymondesray_8-1593766730798.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2231%22%3E%3CP%3E3%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22612%22%3E%3CP%3EConfigure%20the%20GPO%3A%3CBR%20%2F%3EComputer%20Configuration%5CPolicies%5CAdministrative%20Templates%5CFSLogix%5CProfile%20Containers%5CAdvanced%5CProvide%20RedirXML%20file%20to%20customize%20redirections%3CBR%20%2F%3ESetting%3A%20Enabled%3CBR%20%2F%3EPath%3A%20Provide%20the%20only%20the%20folder%20path%20where%20the%20file%20is%20located!%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22raymondesray_9-1593766752705.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203072iD2FDC7F19DBA968B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22raymondesray_9-1593766752705.png%22%20alt%3D%22raymondesray_9-1593766752705.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2231%22%3E%3CP%3E4%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22612%22%3E%3CP%3EEnsure%20the%20WVD%20virtual%20machines%20are%20updated%20with%20%E2%80%9CGPUPDATE%20%2FFORCE%E2%80%9D%20or%20provide%20a%20reboot%20when%20no%20users%20are%20signed%20in.%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2231%22%3E%3CP%3E5%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22612%22%3E%3CP%3EDelete%20existing%20user%20profile%20container%2C%20of%20course%20in%20agreement%20with%20your%20user!%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EResult%3A%20FSLogix%20Profile%20Container%20without%20Teams%20cached%20data%2C%20major%20reduction%20in%20size!%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22raymondesray_10-1593766785079.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203073i5B6555F1AF66ECFE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22raymondesray_10-1593766785079.png%22%20alt%3D%22raymondesray_10-1593766785079.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EDouble%20check%20on%20Azure%20File%20Share%20also%20reports%20only%20200MB%20in%20size.%20Yeah!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22raymondesray_11-1593766808981.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203074i4FB92C33C83FEF2B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22raymondesray_11-1593766808981.png%22%20alt%3D%22raymondesray_11-1593766808981.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHave%20a%20lovely%20day!%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1632005%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20-%20FSLogix%20-%20Reduce%20profile%20container%20size%20-%20exclude%20Teams%20Cache%20with%20redirections.xml%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1632005%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F615756%22%20target%3D%22_blank%22%3E%40raymondesray%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20the%20same%20be%20done%20with%20the%20Office%20365%20container%3F%26nbsp%3B%20We're%20not%20using%20the%20profile%20container.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1632516%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20-%20FSLogix%20-%20Reduce%20profile%20container%20size%20-%20exclude%20Teams%20Cache%20with%20redirections.xml%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1632516%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F781022%22%20target%3D%22_blank%22%3E%40davidsc50%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20redirections.xml%20file%20only%20works%20in%20conjunction%20with%20a%20Profile%20Container%2C%20not%20with%20the%20Office%20container.%20If%20you%20would%20like%20to%20include%20or%20exclude%20Teams%20data%2C%20you%20could%20enable%20or%20disable%20the%20following%20GPO%20setting%3A%20%3CU%3E%3CSTRONG%3EInclude%20Teams%20data%20in%20container%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22raymondesray_0-1599151665098.png%22%20style%3D%22width%3A%20504px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F216357i888DE85B82E533CC%2Fimage-dimensions%2F504x230%3Fv%3D1.0%22%20width%3D%22504%22%20height%3D%22230%22%20title%3D%22raymondesray_0-1599151665098.png%22%20alt%3D%22raymondesray_0-1599151665098.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1632664%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20-%20FSLogix%20-%20Reduce%20profile%20container%20size%20-%20exclude%20Teams%20Cache%20with%20redirections.xml%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1632664%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F615756%22%20target%3D%22_blank%22%3E%40raymondesray%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%26nbsp%3B%20%26nbsp%3BWe%20do%20include%20Teams%20data%20in%20the%20office%20container%20but%20have%20no%20way%20to%20exclude%20the%20recommended%20exclusions%20to%20avoid%20at%20least%20some%20of%20the%20bloat.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBut%20we%20are%20still%20getting%20the%20error.%20So%20here%20are%20the%20scenarios%3A%3C%2FP%3E%3CP%3E1.%20New%20VHDX%2C%20no%20redirections.xml%2C%20it%20works.%20Sign-out%20and%20sign-in%2C%20still%20works.%3C%2FP%3E%3CP%3E2.%20New%20VHDX%2C%20redirections.xml%2C%20first%20sign%20in%20works%2C%20sign-out%20and%20sign-in%2C%20User%20profile%20failed%20to%20attach.%20After%20that%2C%20even%20when%20I%20remove%20the%20redirections.xml%20GPO%2C%20the%20VHDX%20is%20unusable.%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1705693%22%20slang%3D%22en-US%22%3ERe%3A%20WVD%20-%20FSLogix%20-%20Reduce%20profile%20container%20size%20-%20exclude%20Teams%20Cache%20with%20redirections.xml%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1705693%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F615756%22%20target%3D%22_blank%22%3E%40raymondesray%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20implement%20FSLogix%20in%20our%20VMWare%20Horizon%20environment.%20Setup%20is%20simple%2C%20FSLogix%20agent%2C%20Instant%20Clone%20pool%20and%20a%20share%20for%20the%20VHDX%20files.%20When%20implementing%20the%20redirections.xml%20configuration%20with%20a%20GPO%2C%20the%20user%20profile%20is%20unable%20to%20get%20reattached%20(Status%200x00000017%20Reason%3A%200x00000000%20Error%20Code%3A%200x0000000D).%20If%20we%20do%20not%20implement%20the%20redirection.xml%2C%20we%20do%20not%20have%20that%20issue.%20I've%20tried%20with%20an%20empty%20XML%20only%20containing%20the%20following%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CFRXPROFILEFOLDERREDIRECTION%20excludecommonfolders%3D%22%E2%80%9D0%E2%80%9D%22%3E%3C%2FFRXPROFILEFOLDERREDIRECTION%3E%3C%2FP%3E%3CP%3E%3CEXCLUDES%3E%3C%2FEXCLUDES%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBut%20we%20are%20still%20getting%20the%20error.%20So%20here%20are%20the%20scenarios%3A%3C%2FP%3E%3CP%3E1.%20New%20VHDX%2C%20no%20redirections.xml%2C%20it%20works.%20Sign-out%20and%20sign-in%2C%20still%20works.%3C%2FP%3E%3CP%3E2.%20New%20VHDX%2C%20redirections.xml%2C%20first%20sign%20in%20works%2C%20sign-out%20and%20sign-in%2C%20User%20profile%20failed%20to%20attach.%20After%20that%2C%20even%20when%20I%20remove%20the%20redirections.xml%20GPO%2C%20the%20VHDX%20is%20unusable.%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E
Highlighted
Occasional Contributor

Windows Virtual Desktop

Teams cached data causes large Profile Container! Take action and save Azure File Share space!

 

Understanding user profiles: WVD and FSLogix

With Windows Virtual Desktop we can provide virtual workspaces (Full Desktop experience) or applications only (RemoteApp). Conditional access in conjunction with Azure Multi Factor Authentication the user will get a safe sign in experience. In order to save user profile settings it is highly recommended to configure FSLogix Profile Containers. Each time the user signs in the full profile will be loaded (in the background the VHD/VHDX will be attached to the Windows 10 multi-session host) without the needs of reconfiguring the Outlook profile for instance.

Issue: Newly created, or clean, user profile approximately 4.5GB in size?!

Once Teams is installed according to the Teams for VDI installation guidelines (source) and the user starts Teams for the first time I noticed that the profile container size significantly increased within minutes. Weird, right?!

raymondesray_6-1593766627430.png


Windows reports that the profile size of the user is only 425MB in size. FSLogix agent reports a 4,4GB profile container. In order to validate, I double checked the size in Azure Files as well which also shows 4,4GB.

raymondesray_7-1593766657039.png

How is this even possible?! It’s a clean profile! After further investigation I found out a uservoice topic already exists where this issue is reported. https://microsoftteams.uservoice.com/forums/555103-public/suggestions/34622569-teams-windows-client-...  

The cause was explained and confirmed by many others. I also tested this myself, a host pool with Teams and a host pool without Teams. Without Teams the user profile container was approximately 400MB in size.

Which options do we have now?!

  • Dont’t use Teams on WVD. It’s just an option, but obviously not recommended in this era where we collaborate as much as possible in an efficient manner.
  • Use Teams web client.
  • Accept the issue and wait for Microsoft to get this resolved
  • Optimize FSLogix, create exclusions for Team cached data

Fix: Optimize FSLogix, create exclusions for Teams cached data

The next step by step will explain the solution that worked and has been tested succesfully. Teams performance is still very good, as well for stability. More information about how to create exclusions can be found here https://docs.microsoft.com/en-us/fslogix/manage-profile-content-cncpt .

Things to accept;

  • The exclusions file must be named “redirections.xml”
  • FSLogix Agent is installed on the WVD virtual machine. Settings can be applied manually via the registry or Group Policy based on the FSLogix GPO template. I choose GPO method, because this will cover multiple WVD virtual machines at once.
  • Unfortunately after applying the redirections.xml file, the profile container does not shrink in size. In other words, delete the existing profile container. But, communication with your users is key!

Optimize FSLogix

 

1

I have prepared the XML file. Copy below text into a new text file, save this as “redirections.xml” and store the file in a file share that can be accessed by the user (read permissions is sufficient!). During sign on, the FSLogix copies the XML file to %localappdata%\FSLogix .

<?xml version="1.0" encoding="UTF-8"?>

<FrxProfileFolderRedirection ExcludeCommonFolders="0">

<Excludes>

<Exclude Copy="0">AppData\Local\SquirrelTemp</Exclude>

<Exclude Copy="0">AppData\Local\Microsoft\Teams\Current\Locales</Exclude>

<Exclude Copy="0">AppData\Local\Microsoft\Teams\Packages\SquirrelTemp</Exclude>

<Exclude Copy="0">AppData\Local\Microsoft\Teams\current\resources\locales</Exclude>

<Exclude Copy="0">AppData\Local\Microsoft\Teams\Current\Locales</Exclude>

<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\Service Worker\CacheStorage</Exclude>

<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\Application Cache</Exclude>

<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\Cache</Exclude>

<Exclude Copy="0">AppData\Roaming\Microsoft Teams\Logs</Exclude>

<Exclude Copy="0">AppData\Roaming\Microsoft\Teams\media-stack</Exclude>

</Excludes>

</FrxProfileFolderRedirection>

2

I stored the XML file in NETLOGON location.

raymondesray_8-1593766730798.png

3

Configure the GPO:
Computer Configuration\Policies\Administrative Templates\FSLogix\Profile Containers\Advanced\Provide RedirXML file to customize redirections
Setting: Enabled
Path: Provide the only the folder path where the file is located!

raymondesray_9-1593766752705.png

4

Ensure the WVD virtual machines are updated with “GPUPDATE /FORCE” or provide a reboot when no users are signed in.

5

Delete existing user profile container, of course in agreement with your user!

 

Result: FSLogix Profile Container without Teams cached data, major reduction in size!

raymondesray_10-1593766785079.png

Double check on Azure File Share also reports only 200MB in size. Yeah!

raymondesray_11-1593766808981.png

Have a lovely day!

4 Replies
Highlighted

@raymondesray 

Can the same be done with the Office 365 container?  We're not using the profile container.  

Highlighted

@davidsc50 

The redirections.xml file only works in conjunction with a Profile Container, not with the Office container. If you would like to include or exclude Teams data, you could enable or disable the following GPO setting: Include Teams data in container

raymondesray_0-1599151665098.png

 

Hope this helps!

 

Highlighted

@raymondesray 

 

Thank you.   We do include Teams data in the office container but have no way to exclude the recommended exclusions to avoid at least some of the bloat.  

Highlighted

@raymondesray 

We are trying to implement FSLogix in our VMWare Horizon environment. Setup is simple, FSLogix agent, Instant Clone pool and a share for the VHDX files. When implementing the redirections.xml configuration with a GPO, the user profile is unable to get reattached (Status 0x00000017 Reason: 0x00000000 Error Code: 0x0000000D). If we do not implement the redirection.xml, we do not have that issue. I've tried with an empty XML only containing the following:

<?xml version=”1.0″ encoding=”UTF-8″?>

<FrxProfileFolderRedirection ExcludeCommonFolders=”0”>

<Excludes>

</Excludes>

</FrxProfileFolderRedirection>

But we are still getting the error. So here are the scenarios:

1. New VHDX, no redirections.xml, it works. Sign-out and sign-in, still works.

2. New VHDX, redirections.xml, first sign in works, sign-out and sign-in, User profile failed to attach. After that, even when I remove the redirections.xml GPO, the VHDX is unusable.

Thank you