0

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?

2
  • No, that just turns bluetooth on and off - there is another checkbox in the bluetooth GUI to display the icon in the menu bar. Commented Dec 20, 2019 at 19:41
  • Ah, ok, I missed that part of your question. I'll remove the dup. It would help if you added the script you have so far so we can look and see the error.
    – fsb
    Commented Dec 20, 2019 at 19:43

1 Answer 1

1

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.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .