We used this JAMF Script long ago when we were only deploying desktops, which I think worked.
Definitely won't work with 10.11 and SIP. =/
Thanks for the suggestion!
like I said, long ago :)
Can you do something like write a plist file with the network services turned off or disabled and make that a force profile? That's where my mind would go for something like this. It gives me a recoverable point if I do want to enable wifi.
=D
Yeah, looks like:
networksetup -setairportpower Wi-Fi Off
then
networksetup -setnetworkserviceenabled Wi-Fi Off
That should do it. Thanks! I always forget networksetup is a thing.
And grabbed the mobileconfig to disable wifi menu icon from this thread.
https://www.jamf.com/jamf-nation/discussions/21787/removing-wifi-menu-icon
Thanks!
Hi Staze, I'm relatively new to this, is what you've put here with the..
networksetup -setairportpower Wi-Fi Off
then
networksetup -setnetworkserviceenabled Wi-Fi Off
something you put in as a command line, or are you editing a plist file?
Those are both "scripted" command line statements via a policy. There is no plist that'll do those. =/
Fantastic, testing now.. Thank you.
We've been using a script that was originally given to us and titled "Air Defense" from a few years ago. A bug just presented itself, so I'll see about posting it later.
EDIT: Okay, found the bug and fixed it. This seems to be working for both our older and newer systems with the USB-C ports. Feel free to edit, mangle, whatever.
https://github.com/ctmiller/Bridge-Block
-CTM