Now that the schedules tab is removed from Outlook's preferences... has anyone figure out a way to apply a self configuration script like this one?
Our users really enjoyed everything being automagically configured.
Solved! Go to Solution.
More stuff ready for anyone who'd like to test...
I've devised a launchd setup that works well for me in my testing to automatically configure Outlook 2016 the first time it's launched. After a lot of research into launchd QueueDirectories and WatchPaths, the WatchPaths made the most sense because I can monitor for the existence of specific files. (Thanks, @eholtam, for your ideas. I adapted them for my own changes.)
The whole setup consists of one LaunchAgent file and two scripts. The only file you need to customize is the AppleScript. Everything else can just drop in place. The ROOT folder simply designates the "root" of the hard drive or "/". For now, be sure to keep the names and paths of the files and folders the same as I've created them unless you're comfortable changing the references in the three files.
I've also made minor changes to the AppleScript itself to better accommodate all potential settings not just Active Directory as well as accommodate this new setup.
You'll find everything here: https://github.com/talkingmoose/Outlook-Exchange-Setup-5.0
Click the Download ZIP button to the bottom right and locate these files in the ROOT folder:
Feedback, as always, is greatly appreciated.
We have tried a number of times to be able to do simple Outlook/Office 365 registration & setup but had no luck, its something we really want to crack.
Our issue is we authenticate to O365 with a different login to our email address
For example to login and activate O365 I'd use
email@example.com but my email address is firstname.lastname@example.org
What we find is the outgoing email address is set to email@example.com and not firstname.lastname@example.org even with the keys in Outlook this still fails to work
defaults write com.microsoft.Outlook OfficeActivationEmailAddress -string "email@example.com" defaults write com.microsoft.Outlook DefaultEmailAddressOrDomain -string "firstname.lastname@example.org"
What it does is throw up the MS sign inbox with the email@example.com which then fails as it needs firstname.lastname@example.org
I have had a number of emails back and forth with Jeff Kalvass on this but a fix does not see to be forthcoming from MS so perhaps its back to AppleScript to do this?
@MatG, Jeff would be THE person who would know best about this feature. Has he indicated the feature got broken?
The only conditions you need in addition to the two you have are to ensure the OfficeAutoSignIn key in com.microsoft.office (note the different domain plist name) is set to TRUE and that you're running Office version 16.19 (released last November) or later.
It just fails to work as advertised, it seems to take the DefaultEmailAddressOrDomain item as your MS login so I on Outlook activation it then adds the outgoing email to this box when it should be login ID, (I've blanked it out as that is my real email)
I can forward the email trail if you want,, it goes back months now.
@MatG, instead of the email thread, can you post screenshots of your configuration profiles? In particular, screenshots of the Custom Settings payloads for both com.microsoft.autoupdate2 and com.microsoft.office.
Also, review the profile on your test Mac under Apple menu > System Preferences > Profiles. Do the addresses there look correct? In other words, is Jamf's configuration profile correct? If not, then Outlook won't be correct.
Does anyone else had this problem:
Offline Address Book is not loading correctly. This folder stays empty: “~/Library/Group Containers/UBF…Office/Outlook/Outlook 15 Profiles/Main Profile/Caches/[Numbers]/Download/”
BUT: You are able to search the Directory / LDAP (Check Names and Address Book)
The reason we found out this is not working was because we were not able to add a Presenter to a Skype Meeting when planing the meeting. Error Message was "Cannot add presenter - Attendees that are not in your company cannot be assigned the presenter role"
Error Message in "~/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Microsoft/uls/com.microsoft.outlook/logs" is "Exchange account has not manifest URL. Nothing to do." (After :"OAB: Checking to see if we need to update OAB."
If i create a new profile via profile manager and add the Exchange account by hand it is working.
Would be interesting if somebody already had this problem and solved it.
- Macs bound to AD
- User are using mobile accounts with AD accounts
@talkingmoose Does Outlook Setup 5 run once for every user? Or it only really run once period? Lets say I have a shared iMac thats being used by multiple staff, I want the Outlook Auto Setup to run once for the subsequent users. I asked because I see in postinstall script that it deletes the script when its done.
Edit: NVM, it only deletes the temp profiles.
@Eigger, it's written in two steps:
At every login, verifies whether Outlook has been configured at all (Exchange account or otherwise). If it verifies it has been configured, then the script halts and does nothing further.
If at login the script determines Outlook has never been configured, it puts the pieces in place to configure Outlook the first time the app is launched. Once configured, it removes those pieces to prevent any more setups.
Hope that clears things.
@MatG, making sure you see this:
After working with another customer, I found my instructions in the blog post contained some wrong information that is probably the cause of the problems you're discussing here.
Specifically, I had written that all key/value pairs get added to the
com.microsoft.office domain. That's wrong. Only two are for that domain and the third is actually for the
We've updated the blog post with the correct information and some additional information and screen shots around using an Extension Attribute to pull in additional information such as a User Principal Name.
Apologies for all the confusion! I know it can be frustrating to discover you followed all the steps correctly, but the steps were wrong.
@dpratl, I haven't tested my script on Catalina.
The error code you've shown is something for Jamf, and I don't recall adding anything specifically for Jamf. Have you modified it in any way or doing something different than the instructions in the wiki? I've had to learn a few tricks to make things work on Catalina. Just need to know where to look. (Look for a log file too in ~/Library/Logs for the user.
I have tested scripting in the new Outlook that currently in Insider Fast and that appears to be all kinds of broken in many ways. What version of Outlook are you testing? Also, if you can in any way move to Office 365 to take advantage of the configuration profile settings, that would be ideal.
@rqomsiya and @talkingmoose:
It was my fault, I'm sorry. The Volume License Serializer was not working anymore, because of that Office had no license and the script failed.
After a re-installation of the MacBook with the correct Serializer Office was activated and also the Profile creation worked. I was too fast with my post here, sorry for that. And thank you for your help :)
I also tested it with Office 2019 (>16.16.x) and it was working as expected. You guys do awesome work.
Have a great weekend
@dpratl, if you're on MacAdmins Slack, could you please lend your voice to this discussion? I'm chatting with the Outlook for Mac PM at Microsoft and we're discussing the future of AppleScript support for the new Outlook that's currently in Insider Fast. In my testing, the scripts completely break and they're trying to determine how to proceed.
If anyone else is concerned about automated setup for Outlook for Mac with on-premises Exchange servers (not Office 365), feel free to join the discussion!