Does anyone know of a tried and true way to remove the wifi icon from OS X 10.10? Our lab machines are always connected to ethernet so we don't want to give them the option of using wifi. I have a script that runs that will turn off wifi but the icon stays (networksetup -setairportpower airport off). We have tried the following with little to no success. Thanks in advance.
defaults -currentHost write "/Users/labuser/Library/Preferences/ByHost/com.apple.systemuiserver" dontAutoLoad -array -string "/System/Library/CoreServices/Menu Extras/TimeMachine.menu" -string "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" -string "/System/Library/CoreServices/Menu Extras/AirPort.menu"
Setting a Managed Preference in JSS.
This one has the most promise. It removes everything BUT the wifi. # Menu bar: hide the Time Machine, Volume, User, and Bluetooth icons
defaults write ~/Library/Preferences/ByHost/com.apple.systemuiserver.* dontAutoLoad -array
"/System/Library/CoreServices/Menu Extras/TimeMachine.menu"
"/System/Library/CoreServices/Menu Extras/Bluetooth.menu"
"/System/Library/CoreServices/Menu Extras/Airport.menu"
"/System/Library/CoreServices/Menu Extras/User.menu"
defaults write com.apple.systemuiserver menuExtras -array
"/System/Library/CoreServices/Menu Extras/Volume.menu"
"/System/Library/CoreServices/Menu Extras/Clock.menu"
