Posted on 03-17-2015 08:45 AM
Hi --
We are in the process of consolidating our Exchange environments to one. Part of that requires updating settings in outlook. I was successful in getting the Win side updated, but am having a hard time finding a tool to do this on the mac side. Essentially, the URL is changing from mail.company1.edu to mail.company2.edu. The users mail has been mirrored in both environments. Any help is greatly appreciated!!
Solved! Go to Solution.
Posted on 03-17-2015 02:47 PM
Here is a script we used in our environment via Self Service when migrating some users from an acquisition to our mail server. Super simple (just remove the autodiscover stuff if you don't need it):
#!/usr/bin/env bash
userPID=`ps -ef | grep "loginwindow console" | grep -v grep | awk '{print $2}'`
useris=$(ls -l /dev/console | awk -F"1 " '{print $2}' | awk -F" " '{print $1}')
launchctl bsexec $userPID su "$useris" -c /usr/bin/osascript <<HOOK
tell application "Microsoft Outlook"
set the server of every exchange account to "https://yourserveraddress"
end tell
tell application "Microsoft Outlook"
set background autodiscover of every exchange account to false
end tell
display dialog "Email Server Address Fixed" buttons {"OK"}
HOOK
Posted on 03-17-2015 10:49 AM
This thread may be able to help you (https://jamfnation.jamfsoftware.com/discussion.html?id=11470). It discusses changing an email address. Personally, I'd use AppleScript to delete the old account and just add the new one... -t-
Posted on 03-17-2015 02:47 PM
Here is a script we used in our environment via Self Service when migrating some users from an acquisition to our mail server. Super simple (just remove the autodiscover stuff if you don't need it):
#!/usr/bin/env bash
userPID=`ps -ef | grep "loginwindow console" | grep -v grep | awk '{print $2}'`
useris=$(ls -l /dev/console | awk -F"1 " '{print $2}' | awk -F" " '{print $1}')
launchctl bsexec $userPID su "$useris" -c /usr/bin/osascript <<HOOK
tell application "Microsoft Outlook"
set the server of every exchange account to "https://yourserveraddress"
end tell
tell application "Microsoft Outlook"
set background autodiscover of every exchange account to false
end tell
display dialog "Email Server Address Fixed" buttons {"OK"}
HOOK
Posted on 03-24-2015 08:07 AM
@chriscollins Thank you! This is perfect!