# Script to prevent a specific or logged in user from changing WIFI networks on Windows 11

**URL:** <https://forum.xcitium.com/t/script-to-prevent-a-specific-or-logged-in-user-from-changing-wifi-networks-on-windows-11/18048>\
**Category:** Request a Script\
**Created:** [July 23, 2024, 3:10pm UTC](https://forum.xcitium.com/t/script-to-prevent-a-specific-or-logged-in-user-from-changing-wifi-networks-on-windows-11/18048 "2024-07-23T15:10:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nct](https://forum.xcitium.com/letter_avatar_proxy/v4/letter/n/50afbb/32.png) [@nct](https://forum.xcitium.com/u/nct)\
**Post date:** [July 23, 2024, 3:10pm UTC](https://forum.xcitium.com/t/script-to-prevent-a-specific-or-logged-in-user-from-changing-wifi-networks-on-windows-11/18048/1 "2024-07-23T15:10:35Z")

</div>

Hi @PremJKumar

I have machines located in a warehouse and I need to prevent the ‘despatch’ username from selecting a different WIFI network which would provide them with full internet access. The admin users still need the ability to switch WIFI networks.  
This may help [Blacklist/Whitelist Wireless Networks Via Group Policy - Windows - Spiceworks Community](https://community.spiceworks.com/t/blacklist-whitelist-wireless-networks-via-group-policy/1011519/1).  
Do you think you can provide a script to help. Thanks.

---

<div class="post-metadata">

**Author:** ![PremJKumar](https://forum.xcitium.com/user_avatar/forum.xcitium.com/premjkumar/32/883_2.png) [@PremJKumar](https://forum.xcitium.com/u/PremJKumar)\
**Post date:** [July 24, 2024, 6:23am UTC](https://forum.xcitium.com/t/script-to-prevent-a-specific-or-logged-in-user-from-changing-wifi-networks-on-windows-11/18048/2 "2024-07-24T06:23:03Z")

</div>

Hi @nct ,

Thanks for your script request. We have created an internal task “CS-56915” for your reference.

Kind Regards,  
PremJK

---

<div class="post-metadata">

**Author:** ![PremJKumar](https://forum.xcitium.com/user_avatar/forum.xcitium.com/premjkumar/32/883_2.png) [@PremJKumar](https://forum.xcitium.com/u/PremJKumar)\
**Post date:** [July 31, 2024, 11:27am UTC](https://forum.xcitium.com/t/script-to-prevent-a-specific-or-logged-in-user-from-changing-wifi-networks-on-windows-11/18048/3 "2024-07-31T11:27:16Z")

</div>

Hi @nct ,

Please try this script prepared by our script developer  
[https://scripts.itarian.com/frontend/web/topic/script-to-block-and-hide-specific-wifi-connections-in-the-list-of-networks-available](https://scripts.itarian.com/frontend/web/topic/script-to-block-and-hide-specific-wifi-connections-in-the-list-of-networks-available)

Note: Please follow the instructions provided in the description

Kind Regards,  
PremJK

---

<div class="post-metadata">

**Author:** ![nct](https://forum.xcitium.com/letter_avatar_proxy/v4/letter/n/50afbb/32.png) [@nct](https://forum.xcitium.com/u/nct)\
**Post date:** [July 31, 2024, 12:00pm UTC](https://forum.xcitium.com/t/script-to-prevent-a-specific-or-logged-in-user-from-changing-wifi-networks-on-windows-11/18048/4 "2024-07-31T12:00:12Z")

</div>

Thanks.

If anyone knows of a way to block an SSID per user instead of for the whole machine, please let me know.

---

<div class="post-metadata">

**Author:** ![nct](https://forum.xcitium.com/letter_avatar_proxy/v4/letter/n/50afbb/32.png) [@nct](https://forum.xcitium.com/u/nct)\
**Post date:** [August 21, 2024, 12:23am UTC](https://forum.xcitium.com/t/script-to-prevent-a-specific-or-logged-in-user-from-changing-wifi-networks-on-windows-11/18048/5 "2024-08-21T00:23:40Z")

</div>

There’s now a script to only allow specific SSIDs. Thanks to @PremJKumar and his team.

[https://scripts.xcitium.com/frontend/web/topic/script-to-allow-only-specific-wifi-connection](https://scripts.xcitium.com/frontend/web/topic/script-to-allow-only-specific-wifi-connection)
