Set-OrganizationConfig -OAuth2ClientProfileEnabled $trueDisable modern authentication in Exchange Online:
Set-OrganizationConfig -OAuth2ClientProfileEnabled $falseTo verify that the change was successful, run this command:
Get-OrganizationConfig | Format-Table -Auto Name,OAuth*