├── Package
├── ROOT
│ ├── tmp
│ │ └── .DS_Store
│ ├── Library
│ │ ├── Talking Moose Industries
│ │ │ ├── .DS_Store
│ │ │ └── Scripts
│ │ │ │ ├── Outlook Exchange Setup 5.5.4.scpt
│ │ │ │ └── OutlookExchangeSetupLaunchAgent.sh
│ │ └── LaunchAgents
│ │ │ └── net.talkingmoose.OutlookExchangeSetupLaunchAgent.plist
│ └── private
│ │ └── tmp
│ │ └── Outlook Exchange Setup 5
│ │ └── Microsoft Outlook 2016 First Run Unsigned.mobileconfig
├── Package for Deployment.app.zip
└── Scripts
│ └── postinstall
├── Extras
├── com.microsoft.Excel.plist
├── com.microsoft.Word.plist
├── com.microsoft.Powerpoint.plist
├── com.microsoft.autoupdate2.plist
├── com.microsoft.Outlook.plist
├── Microsoft_AutoUpdate_Disable.mobileconfig
├── Microsoft_Word_2016_First_Run.mobileconfig
├── Microsoft_Excel_2016_First_Run.mobileconfig
└── Microsoft_PowerPoint_2016_First_Run.mobileconfig
└── README.md
/Package/ROOT/tmp/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Package/ROOT/tmp/.DS_Store
--------------------------------------------------------------------------------
/Extras/com.microsoft.Excel.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Extras/com.microsoft.Excel.plist
--------------------------------------------------------------------------------
/Extras/com.microsoft.Word.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Extras/com.microsoft.Word.plist
--------------------------------------------------------------------------------
/Extras/com.microsoft.Powerpoint.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Extras/com.microsoft.Powerpoint.plist
--------------------------------------------------------------------------------
/Extras/com.microsoft.autoupdate2.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Extras/com.microsoft.autoupdate2.plist
--------------------------------------------------------------------------------
/Package/Package for Deployment.app.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Package/Package for Deployment.app.zip
--------------------------------------------------------------------------------
/Package/ROOT/Library/Talking Moose Industries/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Package/ROOT/Library/Talking Moose Industries/.DS_Store
--------------------------------------------------------------------------------
/Package/ROOT/Library/Talking Moose Industries/Scripts/Outlook Exchange Setup 5.5.4.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/talkingmoose/Outlook-Exchange-Setup-5/HEAD/Package/ROOT/Library/Talking Moose Industries/Scripts/Outlook Exchange Setup 5.5.4.scpt
--------------------------------------------------------------------------------
/Extras/com.microsoft.Outlook.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | FirstRunExperienceCompletedO15
6 |
7 | OUIWhatsNewLastShownLink
8 | 624956
9 | OverrideAccountConfigurationWindow
10 |
11 | kSubUIAppCompletedFirstRunSetup1507
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Outlook Exchange Setup 5
2 | *© Copyright 2008-2018 [William Smith](mailto:bill@talkingmoose.net)*
3 |
4 | ## Purpose
5 | Outlook Exchange Setup 5 provides your Outlook 2016 for Mac users with automatic setups of their Exchange accounts. It works especially well if the Mac is bound to Active Directory.
6 |
7 | ## Download
8 | You'll always find the latest release here: https://github.com/talkingmoose/Outlook-Exchange-Setup-5/releases/latest
9 |
10 | ## Support
11 | **Software Versions**
12 | Office 2016 for Mac requires OS X 10.10 Yosemite or higher. Therefore, this script supports only OS X 10.10 and higher.
13 |
14 | **Outlook Exchange Setup 5 Administrator's Guide**
15 | https://github.com/talkingmoose/Outlook-Exchange-Setup-5/wiki
16 |
17 | **Report Issues**
18 | Use GitHub's [Issues page for this project](https://github.com/jamfprofessionalservices/CIS-for-macOS-Sierra/issues) or email me at bill@talkingmoose.net. I will make every effort to answer questions about the scripts and work to correct bugs you may find.
19 |
20 | ## Suggestions
21 | If you find this script useful or have ideas for improving it, please let me know. It is intended for use with volume license editions of Office 2016 for Mac. Office 365 customers should not disable Outlook's startup windows because users need to activate the software prior to connecting to their Exchange Online accounts and Autodiscover should already work correctly.
22 |
23 | ## License
24 | This work is licensed under http://creativecommons.org/licenses/by/4.0/. These scripts may be freely modified for personal or commercial purposes but may not be republished for profit without prior consent.
--------------------------------------------------------------------------------
/Extras/Microsoft_AutoUpdate_Disable.mobileconfig:
--------------------------------------------------------------------------------
1 |
2 |
3 | PayloadIdentifiercom.apple.mdm.moostophelees.local.7855e680-57e0-0133-b323-38e856168efc.alacartePayloadRemovalDisallowedPayloadScopeUserPayloadTypeConfigurationPayloadUUID7855e680-57e0-0133-b323-38e856168efcPayloadOrganizationTalking Moose IndustriesPayloadVersion1PayloadDisplayNameMicrosoft AutoUpdate DisablePayloadDescriptionSets Microsoft AutoUpdate to Manual to prevent prompts to users.PayloadContentPayloadTypecom.apple.ManagedClient.preferencesPayloadVersion1PayloadIdentifiercom.apple.mdm.moostophelees.local.7855e680-57e0-0133-b323-38e856168efc.alacarte.customsettings.785380c0-57e0-0133-b322-38e856168efcPayloadUUID785380c0-57e0-0133-b322-38e856168efcPayloadEnabledPayloadDisplayNameCustom: (com.microsoft.autoupdate2)PayloadContentcom.microsoft.autoupdate2Forcedmcx_preference_settingsHowToCheckManualLastUpdate2015-08-08T20:04:03-05:00
4 |
--------------------------------------------------------------------------------
/Extras/Microsoft_Word_2016_First_Run.mobileconfig:
--------------------------------------------------------------------------------
1 |
2 |
3 | PayloadIdentifiercom.apple.mdm.moostophelees.local.d8a957e0-57dd-0133-b316-38e856168efc.alacartePayloadRemovalDisallowedPayloadScopeUserPayloadTypeConfigurationPayloadUUIDd8a957e0-57dd-0133-b316-38e856168efcPayloadOrganizationTalking Moose IndustriesPayloadVersion1PayloadDisplayNameMicrosoft Word 2016 First RunPayloadDescriptionDisables first run windows for Microsoft Word 2016 for Mac. Launching Word for the first time should bring the user to a new Templates window.PayloadContentPayloadTypecom.apple.ManagedClient.preferencesPayloadVersion1PayloadIdentifiercom.apple.mdm.moostophelees.local.d8a957e0-57dd-0133-b316-38e856168efc.alacarte.customsettings.d8a4efc0-57dd-0133-b315-38e856168efcPayloadUUIDd8a4efc0-57dd-0133-b315-38e856168efcPayloadEnabledPayloadDisplayNameCustom: (com.microsoft.Word)PayloadContentcom.microsoft.WordForcedmcx_preference_settingskSubUIAppCompletedFirstRunSetup1507OUIWhatsNewLastShownLink624953
4 |
--------------------------------------------------------------------------------
/Extras/Microsoft_Excel_2016_First_Run.mobileconfig:
--------------------------------------------------------------------------------
1 |
2 |
3 | PayloadIdentifiercom.apple.mdm.moostophelees.local.1eeccf30-57de-0133-b31a-38e856168efc.alacartePayloadRemovalDisallowedPayloadScopeUserPayloadTypeConfigurationPayloadUUID1eeccf30-57de-0133-b31a-38e856168efcPayloadOrganizationTalking Moose IndustriesPayloadVersion1PayloadDisplayNameMicrosoft Excel 2016 First RunPayloadDescriptionDisables first run windows for Microsoft Excel 2016 for Mac. Launching Excel for the first time should bring the user to a new Templates window.PayloadContentPayloadTypecom.apple.ManagedClient.preferencesPayloadVersion1PayloadIdentifiercom.apple.mdm.moostophelees.local.1eeccf30-57de-0133-b31a-38e856168efc.alacarte.customsettings.1ee7d980-57de-0133-b319-38e856168efcPayloadUUID1ee7d980-57de-0133-b319-38e856168efcPayloadEnabledPayloadDisplayNameCustom: (com.microsoft.Excel)PayloadContentcom.microsoft.ExcelForcedmcx_preference_settingskSubUIAppCompletedFirstRunSetup1507OUIWhatsNewLastShownLink624954
4 |
--------------------------------------------------------------------------------
/Extras/Microsoft_PowerPoint_2016_First_Run.mobileconfig:
--------------------------------------------------------------------------------
1 |
2 |
3 | PayloadIdentifiercom.apple.mdm.moostophelees.local.a7a11b50-1b61-0133-b2d8-38e856168efc.alacartePayloadRemovalDisallowedPayloadScopeUserPayloadTypeConfigurationPayloadUUIDa7a11b50-1b61-0133-b2d8-38e856168efcPayloadOrganizationTalking Moose IndustriesPayloadVersion1PayloadDisplayNameMicrosoft PowerPoint 2016 First RunPayloadDescriptionDisables first run windows for Microsoft PowerPoint 2016 for Mac. Launching PowerPoint for the first time should bring the user to a new Templates window.PayloadContentPayloadTypecom.apple.ManagedClient.preferencesPayloadVersion1PayloadIdentifiercom.apple.mdm.moostophelees.local.a7a11b50-1b61-0133-b2d8-38e856168efc.alacarte.customsettings.fdd991a0-1b61-0133-b2da-38e856168efcPayloadUUIDfdd991a0-1b61-0133-b2da-38e856168efcPayloadEnabledPayloadDisplayNameCustom: (com.microsoft.Powerpoint)PayloadContentcom.microsoft.PowerpointForcedmcx_preference_settingskSubUIAppCompletedFirstRunSetup1507OUIWhatsNewLastShownLink624955
4 |
--------------------------------------------------------------------------------
/Package/ROOT/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetupLaunchAgent.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
27 |
28 |
29 | Disabled
30 |
31 | EnvironmentVariables
32 |
33 | PATH
34 | /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/usr/local/sbin
35 |
36 | Label
37 | net.talkingmoose.OutlookExchangeSetupLaunchAgent
38 | ProgramArguments
39 |
40 | /bin/sh
41 | /Library/Talking Moose Industries/Scripts/OutlookExchangeSetupLaunchAgent.sh
42 |
43 | RunAtLoad
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/Package/ROOT/private/tmp/Outlook Exchange Setup 5/Microsoft Outlook 2016 First Run Unsigned.mobileconfig:
--------------------------------------------------------------------------------
1 |
2 | PayloadUUID7374512A-B205-43FC-8F1C-228C9E67F80DPayloadTypeConfigurationPayloadOrganizationTalking Moose IndustriesPayloadIdentifier7374512A-B205-43FC-8F1C-228C9E67F80DPayloadDisplayNameMicrosoft Outlook 2016 First RunPayloadDescriptionDisables first windows run for Microsoft Outlook 2016 for Mac. Launching Outlook for the first time should bring the user to a new Main Window with no accounts and default settings and preferences.PayloadVersion1PayloadEnabledPayloadRemovalDisallowedPayloadScopeSystemPayloadContentPayloadUUID1EF6ED7A-4E0C-4A9B-9900-D368ED0E4666PayloadTypecom.apple.ManagedClient.preferencesPayloadOrganizationTalking Moose IndustriesPayloadIdentifier1EF6ED7A-4E0C-4A9B-9900-D368ED0E4666PayloadDisplayNameCustomPayloadDescriptionPayloadVersion1PayloadEnabledPayloadContentcom.microsoft.OutlookForcedmcx_preference_settingsFirstRunExperienceCompletedO15OverrideAccountConfigurationWindowOUIWhatsNewLastShownLink624956kSubUIAppCompletedFirstRunSetup1507
--------------------------------------------------------------------------------
/Package/Scripts/postinstall:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # --------------------------------------------
4 | # Outlook Exchange Setup 5
5 | # © Copyright 2008-2018 William Smith
6 | # bill@talkingmoose.net
7 | #
8 | # Except where otherwise noted, this work is licensed under
9 | # http://creativecommons.org/licenses/by/4.0/
10 | #
11 | # This file accompanies four files for assisting a user with configuring
12 | # an Exchange account in Microsoft Outlook 2016 for Mac:
13 | #
14 | # 1. Outlook Exchange Setup 5.5.4.scpt
15 | # 2. OutlookExchangeSetupLaunchAgent.sh
16 | # 3. net.talkingmoose.OutlookExchangeSetupLaunchAgent.plist
17 | # 4. com.microsoft.Outlook.plist for creating a configuraiton profile
18 | #
19 | # These scripts and files may be freely modified for personal or commercial
20 | # purposes but may not be republished for profit without prior consent.
21 | #
22 | # If you find these resources useful or have ideas for improving them,
23 | # please let me know. It is only compatible with Outlook 2016 for Mac.
24 | # --------------------------------------------
25 |
26 | # install the Outlook configuration profile plus additional profiles
27 | cd '/private/tmp/Outlook Exchange Setup 5'
28 | PROFILES=$( /bin/ls | /usr/bin/grep .mobileconfig )
29 | for APROFILE in $PROFILES
30 | do
31 | profiles -IF $APROFILE
32 | done
33 |
34 | # remove the temporary profiles folder from /private/tmp
35 | /bin/rm -R '/private/tmp/Outlook Exchange Setup 5'
36 |
37 | # adjust ownership and permissions for the launch agent
38 | /usr/sbin/chown root:wheel /Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetupLaunchAgent.plist
39 | /bin/chmod 644 /Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetupLaunchAgent.plist
40 |
41 | # start the launch agent in case the current user account is the test account
42 | if [ $( /usr/bin/logname ) != "root" ] ; then
43 | /usr/bin/sudo -u $( /usr/bin/logname ) launchctl load -w /Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetupLaunchAgent.plist
44 | fi
45 |
46 | # make the shell script executable
47 | /bin/chmod +x '/Library/Talking Moose Industries/Scripts/OutlookExchangeSetupLaunchAgent.sh'
48 |
49 | exit 0
50 |
--------------------------------------------------------------------------------
/Package/ROOT/Library/Talking Moose Industries/Scripts/OutlookExchangeSetupLaunchAgent.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # --------------------------------------------
4 | # Outlook Exchange Setup 5
5 | # © Copyright 2008-2018 William Smith
6 | # bill@talkingmoose.net
7 | #
8 | # Except where otherwise noted, this work is licensed under
9 | # http://creativecommons.org/licenses/by/4.0/
10 | #
11 | # This file is one of four files for assisting a user with configuring
12 | # an Exchange account in Microsoft Outlook 2016 for Mac:
13 | #
14 | # 1. Outlook Exchange Setup 5.5.4.scpt
15 | # 2. OutlookExchangeSetupLaunchAgent.sh
16 | # 3. net.talkingmoose.OutlookExchangeSetupLaunchAgent.plist
17 | # 4. com.microsoft.Outlook.plist for creating a configuraiton profile
18 | #
19 | # These scripts and files may be freely modified for personal or commercial
20 | # purposes but may not be republished for profit without prior consent.
21 | #
22 | # If you find these resources useful or have ideas for improving them,
23 | # please let me know. It is only compatible with Outlook 2016 for Mac.
24 | # --------------------------------------------
25 |
26 | ##### Definitions
27 |
28 | logfile="$HOME/Library/Logs/OutlookExchangeSetup5.log"
29 |
30 | ###### Functions
31 |
32 | function logresult() {
33 | if [ $? = 0 ] ; then
34 | /bin/date "+%-m/%-d/%y %-H:%M:%S %p $1" >> "$logfile"
35 | else
36 | /bin/date "+%-m/%-d/%y %-H:%M:%S %p $2" >> "$logfile"
37 | fi
38 | }
39 |
40 | # Check for the existence of the UBF8T346G9.Office folder.
41 | # If it doesn't exist then no Office 2016 for Mac application has run.
42 | # Create the folder and create the OutlookProfile.plist file.
43 | # Also create a user LaunchAgents folder and an Outlook setup launchd agent.
44 |
45 | if [[ ! -d "$HOME/Library/Group Containers/UBF8T346G9.Office" ]] ; then
46 | logresult "Folder \"$HOME/Library/Group Containers/UBF8T346G9.Office\" does not exist."
47 |
48 | /bin/mkdir -p "$HOME/Library/Group Containers/UBF8T346G9.Office"
49 | logresult "Create folder \"$HOME/Library/Group Containters/UBF8T346G9.Office\": Successful." "Create folder \"$HOME/Library/Group Containters/UBF8T346G9.Office\": Failed."
50 |
51 | /usr/bin/touch "$HOME/Library/Group Containers/UBF8T346G9.Office/OutlookProfile.plist"
52 |
53 | logresult "Create empty file \"$HOME/Library/Group Containers/UBF8T346G9.Office/OutlookProfile.plist\": Successful." "Create empty file \"$HOME/Library/Group Containers/UBF8T346G9.Office/OutlookProfile.plist\": Failed."
54 |
55 | /bin/mkdir -p "$HOME/Library/LaunchAgents"
56 |
57 | logresult "Create folder \"$HOME/Library/LaunchAgents\": Successful." "Create folder \"$HOME/Library/LaunchAgents\": Failed."
58 |
59 | launchagent='
60 |
61 |
62 |
63 | Disabled
64 |
65 | EnvironmentVariables
66 |
67 | PATH
68 | /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/usr/local/sbin
69 |
70 | Label
71 | net.talkingmoose.OutlookExchangeSetup5
72 | ProgramArguments
73 |
74 | /usr/bin/osascript
75 | /Library/Talking Moose Industries/Scripts/Outlook Exchange Setup 5.5.4.scpt
76 |
77 | RunAtLoad
78 |
79 | WatchPaths
80 |
81 | ~/Library/Group Containers/UBF8T346G9.Office/OutlookProfile.plist
82 |
83 |
84 |
85 | '
86 |
87 | /bin/echo "$launchagent" >> "$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist"
88 |
89 | logresult "Create launch agent \"$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist\": Successful." "Create folder \"$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist\": Failed."
90 |
91 | /bin/chmod 644 "$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist"
92 |
93 | logresult "Set launch agent permissions to 644 (-rw-r--r--): Successful." "Set launch agent permissions to 644 (-rw-r--r--): Failed."
94 |
95 | /bin/launchctl load "$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist"
96 |
97 | logresult "Load launch agent: Successful." "Load launch agent: Failed."
98 |
99 | else
100 | if [[ -d "$HOME/Library/Group Containers/UBF8T346G9.Office" ]] ; then
101 | logresult "$HOME/Library/Group Containers/UBF8T346G9.Office folder already exists. Doing nothing." "$HOME/Library/Group Containers/UBF8T346G9.Office folder does not exist but it should exist already. Something may be wrong."
102 | fi
103 |
104 | if [[ -f "$HOME/Library/Group Containers/UBF8T346G9.Office/OutlookProfile.plist" ]] ; then
105 | logresult "$HOME/Library/Group Containers/UBF8T346G9.Office/OutlookProfile.plist already exists. Doing nothing." "$HOME/Library/Group Containers/UBF8T346G9.Office/OutlookProfile.plist does not exist but it should exist already. Something may be wrong."
106 | fi
107 |
108 | if [[ -d "$HOME/Library/LaunchAgents" ]] ; then
109 | logresult "$HOME/Library/LaunchAgents already exists. Doing nothing." "$HOME/Library/LaunchAgents does not exist but it should exist already. Something may be wrong."
110 | fi
111 |
112 | if [[ ! -f "$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist" ]] ; then
113 | logresult "$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist does not exist. Doing nothing." "$HOME/Library/LaunchAgents/net.talkingmoose.OutlookExchangeSetup5.plist exists. Something may be wrong."
114 | fi
115 | fi
116 |
117 | exit 0
--------------------------------------------------------------------------------