Category filter

Script to manage preference panes on macOS Ventura

System administrators managing a fleet of devices may prefer to disable certain preference panes to ensure devices are configured securely while ensuring no unwanted changes are made. Using Hexnode’s Custom Script feature, admins can deploy scripts to disable System Settings panes across all their devices running macOS Ventura. Additionally, they can also deploy scripts to open preferences panes on the devices to troubleshoot issues and provide support to users.

Scripting Language – Bash

File extension – .sh


  • The sample scripts provided below are adapted from third-party open-source sites.
  • The scripts provide below only work on devices running macOS 13.0 or above.

Disable any System Settings pane

You can disable any System Settings panes by specifying the correct CFBundleIdentifier in the script below.

The following table specifies the bundle identifiers of different settings in the System Settings pane.

Preference Pane CFBundleIdentifier
AirDrop & Handoff
Apple ID
Control Center
Date & Time
Desktop & Dock
Game Center
Internet Accounts
Language & Region
Lock Screen
Login Items
Printers & Scanners
Screen Time
Screen Saver
Siri & Spotlight
Software Update
Startup Disk
Time Machine
Touch ID & Password
Transfer or Reset
Users & Groups
Wallet & Apple Pay

For example, executing the following script will prevent the user from accessing the Battery pane in the System Settings app, thus preventing the users from tampering with the Battery settings.

Disabled Battery preference pane in System Settings

To disable multiple System Preferences panes, specify the CFBundleIdentifiers of those preference panes in succession. For example, to disable both Bluetooth and Network from System Settings:

To re-enable the disabled preference panes, execute the script below:

Open any System Settings Preference pane

Specify the CFBundleIdentifier for the preference pane you want to open. Refer to the table for the bundle identifiers of different preference panes.

For example, to open the Network preference pane in the System Settings app,

If you are looking to manage preference panes on devices running macOS versions below 13.0, refer to Hide/Disable System Preferences panes.


  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.
  • Sample Script Repository