Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Created February 2, 2026 16:25
Show Gist options
  • Select an option

  • Save supermarsx/0d388ba63fe390fcad15c70e64d404a4 to your computer and use it in GitHub Desktop.

Select an option

Save supermarsx/0d388ba63fe390fcad15c70e64d404a4 to your computer and use it in GitHub Desktop.
Fix Outlook asking for credentials when doing on-prem
@echo off
reg add "HKCU\Software\Microsoft\Exchange" /v AlwaysUseMSOAuthForAutoDiscover /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\Security" /v PromptForCredentials /t REG_DWORD /d 0 /f
taskkill /f /im outlook.exe >nul 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment