Skip to main content
Question

Block SSID

  • Nov 12, 2026 7:58 PM UTC
  • 4 replies
  • 94 views

avrahom

So is there a script or policy I can implement in JAMF Pro, to hide the guest SSID which is made always available. I saw a bunch of different articles  that involved turning off the Wi-Fi and having the user turn it back on, which doesn't help in my use case.

 

Any help would be most appreciated! Thank you in advance! 

4 replies

Chris_Hafner
Forum|alt.badge.img+29
  • Jamf Heroes
  • Nov 12, 2026 8:26 PM UTC

I’ll admit, I am not sure if that’s possible. (telling the Mac not to show an SSID it can see)

However, you can certainly block it in a few different ways depending on your network, or, as we do, remove said SSID from from the devices “Preferred Network” list. We only do it once a day, but you could use a fairly simple script to do so, triggered by “Network State Change”

Something like

 

#!/bin/bash


WirelessPort=$(networksetup -listallhardwareports | awk '/Wi-Fi|AirPort/{getline; print $NF}')

networksetup -removepreferredwirelessnetwork "$WirelessPort" "SSID Name"

echo Done!


avrahomgross
Forum|alt.badge.img
  • New Contributor
  • Nov 16, 2026 4:08 PM UTC

 

 


avrahomgross
Forum|alt.badge.img
  • New Contributor
  • Nov 16, 2026 4:10 PM UTC

I’ll admit, I am not sure if that’s possible. (telling the Mac not to show an SSID it can see)

However, you can certainly block it in a few different ways depending on your network, or, as we do, remove said SSID from from the devices “Preferred Network” list. We only do it once a day, but you could use a fairly simple script to do so, triggered by “Network State Change”

Something like

 

#!/bin/bash


WirelessPort=$(networksetup -listallhardwareports | awk '/Wi-Fi|AirPort/{getline; print $NF}')

networksetup -removepreferredwirelessnetwork "$WirelessPort" "SSID Name"

echo Done!

This worked to remove from the preferred network list but what if they are already connected to the network is there a way to force them off?

 


Chris_Hafner
Forum|alt.badge.img+29
  • Jamf Heroes
  • Nov 16, 2026 5:06 PM UTC

Without doing too much creative thinking (meaning there may be other possibilities) I would probably set up a configuration profile to prevent the units from auto joining said Guest Network.

Config profile → Network → configure for the guest SSID and make sure “AutoJoin” is UNCHECKED. This will prevent any attempt to auto join, and having cleared the SSID from the preferred networks will resolve the issue by the time the lease expires (usually within 24 hours). You could also add a specific SSID for them to auto connect to if that’s desired in your location. 

Others may have a better way of accomplishing this.