Skip to content

Instantly share code, notes, and snippets.

@codeshrew
Last active August 29, 2015 13:56
Show Gist options
  • Save codeshrew/9123795 to your computer and use it in GitHub Desktop.
Save codeshrew/9123795 to your computer and use it in GitHub Desktop.
Simple Applescript to switch off Outlook's annoyingly aggressive autodiscover feature
# Outlook has an annoying habit of autodiscovering the internal server and switching your configuration, no matter how many times you manually set it.
# This script will switch off autodiscover so that it will keep whatever manual configuration you give it.
# The only thing you need to do is change INSERT_ACCOUNT_NAME to the name of the account you want this to apply to.
# To reenable autodiscover, just change 'false' to 'true' and run the script again.
tell application "Microsoft Outlook"
set background autodiscover of exchange account "INSERT_ACCOUNT_NAME" to false
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment