We recently had a client struggle to troubleshoot their WiFi network problems for 2 months before asking us to help. The new they need to remove the WiFi network from some Windows 10 and Windows 11 computers but the FORGET network button was grayed out.
They realized the problem was related to a GPO, because only a GPO (or a registry entry, which is usually controlled by a GPO) will gray out most buttons, but they could not find the setting.
Enter Up & Running.
It is reasonable to think that there is a GPO that specifically blocks the FORGET network button, but that is not the case. Greying out the FORGET network button is not a specific setting within a Group Policy but is a non-configurable bi-product of having a WiFi Group Policy. In other-words if you have a GPO that added a WiFi network, the FORGET network button will be grayed out.
For our client the solution was to move the GPO to only some of there Organizational Units and to remove it from the root of their Group Policy domain.
PowerShell to Forget a WiFi Network
A WiFi GPO will grayout the FORGET button but will not stop you from forgetting the WiFi network from the registry using a simple PowerShell command:
- Open PowerShell as an Administrator
- OPTIONAL: List the saved Wi-Fi profiles:
netsh wlan show profiles
- Enter the following, obviously substituting the SSID you want to delete for PROFILENAME:
netsh wlan delete profile name="ProfileName"
0 Comments