A field-tested approach to restrict internet access on PAWs when GSA Internet Access is unavailable or disabled.
Updated Oct 13, 2026
Version 3.0In the write up you mentioned.
PowerShell script (step 4) that:
and
switches the device to the Public firewall network profile (step 5) and initiates an Intune custom compliance check, too.
However the provided PowerShell examples only touch the Firewall policy with Set-NetConnectionProfile
but in no way trigger a refresh of the compliance policy.
this could leave the in the wrong compliance stance for some time after a change to the status of GSA.
Thanks David Jones for the hint about the missing element in the provided script examples. Both relevant PowerShell scripts have been updated.