Refreshing Managed Client Cache
Deleting the contents of the /Library/Managed Preferences directory is definitely one way to refresh your managed preferences cache in Mac OS X, but there have been commands specifically designed to clear the cache for each version of Mac OS X. By OS, these include the following:
- 10.6 – mcxrefresh – You can use this command (in /usr/bin) to refresh managed preferences
- 10.6 also has a ManagedClient binary in /System/Library/CoreServices/ManagedClient.app/Contents/MacOS/ManagedClient. When run with a -f option, ManagedClient will force updates.
- 10.5 has a binary called mcxd located in /System/Library/CoreServices/mcxd.app/Contents/MacOS/mcxd which can also be run with a -f option
- 10.4 has a binary called MCXCacher, stored in /System/Library/CoreServices/mcxd.app/Contents/Resources/MCXCacher which also supports the same -f option.
There are a number of other ways to go about this. If you have some that you use that I did not mention please feel free to add a comment.
Similar Articles:
- Scripting Fast User Switching
- Mac OS X: Getting a Finder Window as Root
- The OS X Application Layer Firewall Part 3: Lion
- Mac OS X Server: Managed iWork Preferences
- Customizing the color and icons in the Dock
In: Mass Deployment · Tagged with: clear, force, Mac OS X, Managed Preferences, managedclient, MCXCacher, mcxd, rebuild, refresh, rm




on January 5, 2011 at 2:14 pm
Permalink
I asked for mcxrefresh to be made to compete against utilities like gpupdate /force for Windows. Any user going cross platform has a similar utility to use. And I am always changing something and have to ask users to logout and back in again for changes to take effect and is a huge pain for end users. Being able to run a command to mcxrefresh is nice to update the MCX settings while the user is logged in.
on February 16, 2011 at 2:56 am
Permalink
[...] This page may be of use. It has the commands to force clear the MCX cache Refreshing Managed Client Cache | Krypted.com Reply With Quote [...]