Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JoeOIVOV/b2babc164de99918bdd6e1749797791c to your computer and use it in GitHub Desktop.
Save JoeOIVOV/b2babc164de99918bdd6e1749797791c to your computer and use it in GitHub Desktop.
Exclude Office 365 from Outlook 16.0 autodiscovery
@ECHO OFF
REG ADD HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:32
REG ADD HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:32
REG ADD HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:64
REG ADD HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment