We have a large number of computers to set up and would like to add the wifi and bluetooth icons to the menubar. How can I turn these settings on via a shell script or command line instruction?
How to add the wifi and bluetooth icon to the menubar programatically (from the command line)
-setupbluetoothcommand linemenu barwifi
Related Question
- MacOS – How to hide or remove useless network names from the wifi menubar icon
- How to list bluetooth devices from command line
- MacOS – Setting Option+[WIFI ICON MENUBAR CLICK] as default action when clicking the wifi icon in the menu bar
- MacOS – How to restart Bluetooth service from command line
- MacOS – Can autologin be set up from the command line? how
- How to determine the battery level of the magic mouse from the command line
- How to get Wi-Fi details from menubar in Big Sur like before
Best Answer
I believe the Wi-Fi one is there by default, but if you want to be sure, you can use
open '/System/Library/CoreServices/Menu Extras/Bluetooth.menu'
open '/System/Library/CoreServices/Menu Extras/AirPort.menu'
to add them to the menu bar.
(Note: those paths are valid from at least El Capitan to Catalina.)