Posted on 05-06-2024 01:17 PM
After weeks of working and looking for a solution with Sonoma NOT showing the WiFi through the control center to all my wired lab users, I felt you might stumble across this and need specifics to a solution.
I disable the WiFi on my machines. I do so by running:
sudo networksetup -setnetworkserviceenabled Wi-Fi off
This will cause the WiFi icon to show an explanation point. This is a nasty thing for users, making them think that they don't have internet when they do. So to eliminate this, I created a Configuration Profile that I push out to these computers.
Here it is:
Then under Application & Custom Settings, I choose Upload and created the following:
The scope will be those computers running Sonoma.
I hope you find this useful.
Jack Lawton
IT Manager/Lab Manager (5 labs - 100+ machines)
School of Journalism and New Media
University of Mississippi
Posted on 05-07-2024 12:41 PM
Just as an FYI, the Wi-Fi icon showing in the menu bar is part of the NIST CIS L1 benchmark. For orgs trying to ensure they follow the benchmarks to the letter, they will want the Wi-Fi icon showing as hiding it can trigger a finding.
ID system_settings_wifi_menu_enable |
|
References |
800-53r5 CIS Benchmark CIS Controls V8 CCE • N/A • 4.8 |
Posted on 05-08-2024 06:24 AM
05-08-2024 02:26 PM - edited 05-08-2024 02:33 PM
Is there any documented rhyme or reason to the integer to use for the WiFi key? You appear to be using 8 (ᵐᵃʸᵇᵉ ᵐᵃᵏᵉ ᵗʰᵉ ⁱᵐᵃᵍᵉˢ ᵃ ᵇⁱᵗ ˡᵃʳᵍᵉʳ ⁿᵉˣᵗ ᵗⁱᵐᵉ), a StackExchange post mentioned 24, and they both appear to work, but the fact they key is an integer rather than a boolen would seem to indicate more is going on here.
Posted on 05-09-2024 04:40 AM
As someone pointed out the Plist settings are very hard to read. Here is its contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyLists-1.0dtd">
<plist version="1.0">
<dict>
<key>UserSwitcher</key>
<integer>22</integer>
<key>WiFi</key> <integer>8</integer>
</dict>
</plist>
Have a great day.
Posted on 06-14-2024 07:29 AM
Thank you, this worked on our Sonoma machines. Very annoying that Apple is once again shifting settings around for no obvious reason...
To clarify, the profile removes the Wifi icon from the Menu bar, not the Control Center. We can still access Wifi from the Control Center drop down, which is fine for us.
06-22-2024 05:57 PM - edited 06-22-2024 05:59 PM
@jalawton is the UserSwitcher key related to the wi-fi menu bar icon too? This discussion suggests only setting the
WiFi key
Posted on 06-24-2024 05:36 AM
Prior to Sonoma, I had a Configuration Profile that performed this function. Here is this profile that its scope was targeting all computers. Here is that Configuration Profile:
Name: Disable WiFi icon
Description: This disables the WiFi icon from showing on the user console.
Category:None
Level:Computer Level
Distribution Method: Install Automatically.
Under:
Application & Custom Settings
1 payload configured
Here is that payload:
Upload File
PLIST file containing key value pairs for settings in the specified domain
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyLists-1.0dtd">
<plist version="1.0">
<dict>
<key>AirPort.menu</key>
<false/>
<key>delaySeconds</key>
<real>2</real>
</dict>
</plist>
I hope this helps.