Preventing users from using Outlook local folders

Valued Contributor II

Hi, has anybody tried blocking the use of local folders in Outlook 2016?
I have found this setting defaults read HideFoldersOnMyComputerRootInFolderList
and tried creating a plist with just that set to true, and then converted the profile with then deployed the mobileconfig through MDM but the setting is not set nor is it blocked from being set.

Any help would be appreciated if anybody has done similar.


Contributor III

Make sure that you are deploying the config on the User Level, not the Computer level.

Honored Contributor

Legendary Contributor III

I think the issue is that with Office 2016 apps being sandboxed, the preferences are not stored in the standard location. That particular setting is actually now in ~/Library/Containers/

You might need to recreate the Config Profile from that plist and not the one in ~/Library/Preferences/

Valued Contributor II

@mm2270 Just so you knonw I do not have that plist in Library/Preferences when I run the defaults read it finds the sandboxed version. So hence why I was hoping it would work. The old way. thanks for the feedback

@jason.bracy I did a userlevel config. thanks for the double check though.

Contributor III

@nessts I just tried this and it appears to be working well for me:

Plist: (name is important per mcxToProfile documentation)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">

mcxToProfile command:

./mcxToProfile-master/ --plist ./ --identifier HideOutlookLocalFolders --manage Always

Installed Profile locally, but should be same from MDM:

profiles -I -F ./HideOutlookLocalFolders.mobileconfig

The "Hide On My Computer folders" box is checked. The GUI allows me to uncheck it, but the local folders do not appear, and the box is checked again as soon as you reopen the preferences window. I cannot overwrite the setting with defaults either....the profile is working.

Contributor III

Hey guys, just curious... What is the advantage of using the instead of just uploading the .plist to the Custom Settings payload of a Configuration Profile in Casper?

Contributor III

@jason.bracy I'd never used mcxToProfile before, I just tried it because it was mentioned in the post and I don't have a JSS available to me at the moment. I like it, nice tool.

If creating custom profiles occasionally in the JSS I would keep doing it that way because it is easy and you get a signed profile. It looks like mcxToProfile was created to be a conversion utility (as the name implies). It's a command line tool so there are big advantages if you are going to automate config profile creation.