Posted on 04-06-2023 09:48 AM
I'm looking for an extension attribute that I could add that would report whether the currently logged in user has the old or the new Outlook UI. We've run into some issues that seem to be fixed by switching between the two and while we have a gut feeling for how many of our users are still on the old UI, it'd be nice to have some data to back that up. I haven't been able to find any preference files or anything else specifically that would really tell me one way or the other. Has anyone else found anything that works?
Solved! Go to Solution.
Posted on 04-06-2023 11:07 AM
We used this a while ago. Not sure if it still works.
#!/bin/sh
loggedInUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
NewOutlook=$(defaults read /Users/$loggedInUser/Library/Containers/com.microsoft.Outlook/Data/Library/Preferences/com.microsoft.Outlook IsRunningNewOutlook)
if [ "$NewOutlook" == "1" ]; then
echo "<result>Enabled</result>"
else
echo "<result>Disabled</result>"
fi
exit 0
Posted on 04-06-2023 11:07 AM
We used this a while ago. Not sure if it still works.
#!/bin/sh
loggedInUser=$(scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
NewOutlook=$(defaults read /Users/$loggedInUser/Library/Containers/com.microsoft.Outlook/Data/Library/Preferences/com.microsoft.Outlook IsRunningNewOutlook)
if [ "$NewOutlook" == "1" ]; then
echo "<result>Enabled</result>"
else
echo "<result>Disabled</result>"
fi
exit 0
Posted on 04-06-2023 11:38 AM
@DBrowning Nailed it - thank you!