top of page

How to customise MacOS Control Panes

Writer's picture: airwatchhkairwatchhk

Updated: Jan 5, 2023

Need to get MacOS control panes customized? One of the options is to make use of custom profile.

You will need to know the custom profile syntax and the panes item ID. You will know both of them after you finish this quick reading.

This is a custom profile to get everything on Control Panes disabled:


<dict>

<key>PayloadType</key> <string>com.apple.systempreferences</string> <key>PayloadVersion</key>

<integer>1</integer>

<key>PayloadIdentifier</key> <string>com.yourorg.profile.prefpanes</string> <key>PayloadEnabled</key>

<true/>

<key>PayloadUUID</key> <string>d264dfc2-2b01-f0d0-24e2-9c98d6f3239b</string> <key>PayloadDisplayName</key>

<string>Preference Panes</string> <key>DisabledPreferencePanes</key>

<array>

<string>com.apple.preferences.users</string>

<string>com.apple.preference.general</string> <string>com.apple.preferences.AppleIDPrefPane</string> <string>com.apple.preference.battery</string><string>com.apple.preferences.Bluetooth</string> <string>com.apple.preferences.ClassKitPreferencePane</string> <string>com.apple.ClassroomSettings</string>

<string>com.apple.preference.datetime</string> <string>com.apple.preference.desktopscreeneffect</string> <string>com.apple.preference.digihub.discs</string> <string>com.apple.preference.displays</string> <string>com.apple.preference.dock</string> <string>com.apple.preference.energysaver</string> <string>com.apple.preference.expose</string> <string>com.apple.preferences.extensions</string> <string>com.apple.preferences.FamilySharingPrefPane</string> <string>com.apple.prefpanel.fibrechannel</string> <string>com.apple.preferences.internetaccounts</string> <string>com.apple.preference.keyboard</string> <string>com.apple.Localization</string> <string>com.apple.preference.mouse</string> <string>com.apple.preference.network</string> <string>com.apple.preference.notifications</string> <string>com.apple.preference.printfax</string> <string>com.apple.preferences.configurationprofiles</string> <string>com.apple.preference.screentime</string> <string>com.apple.preference.security</string>


<string>com.apple.preferences.sharing</string>

<string>com.apple.preference.sidecar</string> <string>com.apple.preferences.softwareupdate</string> <string>com.apple.preference.sound</string>

<string>com.apple.preference.speech</string>

<string>com.apple.preference.spotlight</string> <string>com.apple.preference.startupdisk</string>

<string>com.apple.prefs.backup</string> <string>com.apple.preferences.password</string><string>com.apple.preference.trackpad</string> <string>com.apple.preference.universalaccess</string> <string>com.apple.preferences.wallet</string>

</array> </dict>


This is a custom profile to get everything but general, power, password and profile disabled.

<dict>

<key>PayloadType</key> <string>com.apple.systempreferences</string> <key>PayloadVersion</key>

<integer>1</integer>

<key>PayloadIdentifier</key> <string>com.yourorg.profile.prefpanes</string> <key>PayloadEnabled</key>

<true/>

<key>PayloadUUID</key> <string>d264dfc2-2b01-f0d0-24e2-9c98d6f3239b</string> <key>PayloadDisplayName</key>

<string>Preference Panes</string> <key>DisabledPreferencePanes</key>

<array>

<string>com.apple.preferences.users</string> <string>com.apple.preferences.AppleIDPrefPane</string> <string>com.apple.preferences.Bluetooth</string> <string>com.apple.preferences.ClassKitPreferencePane</string> <string>com.apple.ClassroomSettings</string> <string>com.apple.preference.datetime</string> <string>com.apple.preference.desktopscreeneffect</string> <string>com.apple.preference.digihub.discs</string> <string>com.apple.preference.displays</string> <string>com.apple.preference.dock</string> <string>com.apple.preference.energysaver</string> <string>com.apple.preference.expose</string> <string>com.apple.preferences.extensions</string> <string>com.apple.preferences.FamilySharingPrefPane</string> <string>com.apple.prefpanel.fibrechannel</string> <string>com.apple.preferences.internetaccounts</string>


<string>com.apple.preference.keyboard</string> <string>com.apple.Localization</string> <string>com.apple.preference.mouse</string> <string>com.apple.preference.network</string> <string>com.apple.preference.notifications</string> <string>com.apple.preference.printfax</string> <string>com.apple.preference.screentime</string> <string>com.apple.preference.security</string> <string>com.apple.preferences.sharing</string> <string>com.apple.preference.sidecar</string> <string>com.apple.preferences.softwareupdate</string> <string>com.apple.preference.sound</string> <string>com.apple.preference.speech</string> <string>com.apple.preference.spotlight</string> <string>com.apple.preference.startupdisk</string> <string>com.apple.prefs.backup</string> <string>com.apple.preference.trackpad</string> <string>com.apple.preference.universalaccess</string> <string>com.apple.preferences.wallet</string>

</array> </dict>



This is the command to help you get all the control panes items:


Shell command to list out all system preference items

xxxxxx-a01:Preferences xxxxxx$ for aPane in /System/Library/PreferencePanes/* ; do echo -n `basename "$aPane"`:; defaults read "$aPane/Contents/Info" CFBundleIdentifier; done Accounts.prefPane:com.apple.preferences.users Appearance.prefPane:com.apple.preference.general AppleIDPrefPane.prefPane:com.apple.preferences.AppleIDPrefPane Battery.prefPane:com.apple.preference.battery

Bluetooth.prefPane:com.apple.preferences.Bluetooth ClassKitPreferencePane.prefPane:com.apple.preferences.ClassKitPreferencePane ClassroomSettings.prefPane:com.apple.ClassroomSettings DateAndTime.prefPane:com.apple.preference.datetime DesktopScreenEffectsPref.prefPane:com.apple.preference.desktopscreeneffect DigiHubDiscs.prefPane:com.apple.preference.digihub.discs Displays.prefPane:com.apple.preference.displays Dock.prefPane:com.apple.preference.dock EnergySaver.prefPane:com.apple.preference.energysaver Expose.prefPane:com.apple.preference.expose Extensions.prefPane:com.apple.preferences.extensions FamilySharingPrefPane.prefPane:com.apple.preferences.FamilySharingPrefPane FibreChannel.prefPane:com.apple.prefpanel.fibrechannel InternetAccounts.prefPane:com.apple.preferences.internetaccounts Keyboard.prefPane:com.apple.preference.keyboard Localization.prefPane:com.apple.Localization Mouse.prefPane:com.apple.preference.mouse Network.prefPane:com.apple.preference.network Notifications.prefPane:com.apple.preference.notifications PrintAndFax.prefPane:com.apple.preference.printfax PrintAndScan.prefPane:com.apple.preference.printfax Profiles.prefPane:com.apple.preferences.configurationprofiles ScreenTime.prefPane:com.apple.preference.screentime Security.prefPane:com.apple.preference.security SharingPref.prefPane:com.apple.preferences.sharing Sidecar.prefPane:com.apple.preference.sidecar SoftwareUpdate.prefPane:com.apple.preferences.softwareupdate Sound.prefPane:com.apple.preference.sound Speech.prefPane:com.apple.preference.speech Spotlight.prefPane:com.apple.preference.spotlight StartupDisk.prefPane:com.apple.preference.startupdisk TimeMachine.prefPane:com.apple.prefs.backup TouchID.prefPane:com.apple.preferences.password Trackpad.prefPane:com.apple.preference.trackpad UniversalAccessPref.prefPane:com.apple.preference.universalaccess Wallet.prefPane:com.apple.preferences.wallet


You can also use script editor to tell an system preference item ID. You open up the item and run a script to get the item ID.









Open a system preference items you want to get the ID of. Now run the following script. It will tell the preference ID of the opened item.


tell application "System Preferences"

set CurrentPane to the id of the current pane

set the clipboard to CurrentPane

display dialog "Current Pane ID: " & CurrentPane & return & return &

"Pane ID has been copied to the clipboard."

end tell

46 views0 comments

Recent Posts

See All

Commenti


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by EUC852. Proudly created with Wix.com

bottom of page