Skip to main content
Question

Block SSID

  • Nov 12, 2026 7:58 PM UTC
  • 1 reply
  • 11 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! 

1 reply

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!