Using Classic Outlook on Windows for personal email, calendar, and contact management
Mate, you legend.
Ok since I seen so many people having issues. Here is the fix that worked for me.
MY ENVIRONMENT
1x GW/Broker server 2022
2x Session host server 2022
-365 for business (latest build) (using business premium licensing) Install with custom XML to override the SCLCacheOverrideDirectory, you want to point this to a UNC share. https://learn.microsoft.com/en-us/microsoft-365-apps/deploy/office-deployment-tool-configuration-options
<Property Name="FORCEAPPSHUTDOWN" Value="FALSE"/>
<Property Name="SharedComputerLicensing" Value="1"/>
<Property Name="SCLCacheOverride" Value="1" />
<Property Name="SCLCacheOverrideDirectory" Value="\server\share%username%" />
The above are the parameters I used.
FSLOGIX REG SETTINGS:
CleanOutNotifications - dword - 1
DeleteLocalProfileWhenVHDShouldApply - dword - 1
Enabled - dword - 1
FlipFlopProfileDirectoryName - dword - 1
IsDynamic - dword - 1
KeepLocalDir - dword - 1
LockedRetryCount - dword - 12
LockedRetryInterval - dword - 5
OutlookCachedMode - dword -1
PreventLoginWithFailure - dword - 1
PreventLoginWithTempProfile - dword - 1
ProfileType - dword - 3
ReAttachIntervalSeconds - dword - 10
ReattachRetryCount - dword - 60
ReDirectXMLSourceFolder - RegSZ - path to UNC
RemovedOrphanedOSTFilesOnLogoff - dword - 1
RoamIdentity - dword - 1
Roamsearch - dword - 0
SetTempToLocalPath - dword - 3
SizeInMBs - dword - whatever size you want
VHDLocations - RegSZ - path to UNC
VolumeType - RegSZ - VHDX
Add the following to this:
<?xml version="1.0" encoding="UTF-8"?>
<FrxProfileFolderRedirection ExcludeCommonFolders="0">
<Exclude Copy="0">AppData\Local\Packages\Microsoft.AAD.BrokerPlugin\_cw5n1h2txyewy</Exclude>
<Exclude Copy="0">AppData\Local\Packages\Microsoft.Windows.CloudExperienceHost\_cw5n1h2txyewy</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\TokenBroker</Exclude>
</FrxProfileFolderRedirection>
Note: I believe this is if you do not do the custom 365 install with XML (read above) I could be wrong. You can add it for good measure anyway it does not break anything.
REG KEY TO ADD ON BOTH SESSION HOSTS
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WorkplaceJoin]
"BlockAADWorkplaceJoin"=dword:00000001
This will remove that prompt for Microsoft to manage the device. we do not want this. I beleive this is what breaks the identity token for OneDrive. Log into Entra ID > go to devices and search your session hosts. If they are in there just remove them it will not break anything.
Note: Users will have to sign into the following
Edge - will prompt MFA
Teams - will prompt MFA
Office apps - will prompt MFA
OneDrive - will prompt MFA
This is the only down side. Once you do this once they won't have to go again for like 30 or 90 days (i cant remember)
They will also need to do this on the other session host just once to.