Skip to main content
Question

Disable WiFi computer configuration profile


rstasel
Forum|alt.badge.img+13
  • Valued Contributor
  • 334 replies

Hi All,

Back in the MCX days, there was a way to disable wifi and bluetooth on computers via WGM. This was good for labs that were all hardwired, as it kept students from being silly, and turning on wifi.

Is there any way to do this with a configuration profile?

9 replies

easyedc
Forum|alt.badge.img+16
  • Esteemed Contributor
  • 623 replies
  • January 23, 2017

We used this JAMF Script long ago when we were only deploying desktops, which I think worked.


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • 334 replies
  • January 23, 2017

Definitely won't work with 10.11 and SIP. =/

Thanks for the suggestion!


easyedc
Forum|alt.badge.img+16
  • Esteemed Contributor
  • 623 replies
  • January 23, 2017

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.


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • 334 replies
  • January 23, 2017

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


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • 334 replies
  • January 23, 2017

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!


Forum|alt.badge.img+1
  • New Contributor
  • 2 replies
  • February 22, 2017

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?


rstasel
Forum|alt.badge.img+13
  • Author
  • Valued Contributor
  • 334 replies
  • February 22, 2017

Those are both "scripted" command line statements via a policy. There is no plist that'll do those. =/


Forum|alt.badge.img+1
  • New Contributor
  • 2 replies
  • February 22, 2017

Fantastic, testing now.. Thank you.


Forum|alt.badge.img+10
  • Contributor
  • 25 replies
  • February 23, 2017

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings