Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load available wifi networks on custom named adapters #27

Open
nekkron opened this issue Apr 12, 2021 · 2 comments
Open

Unable to load available wifi networks on custom named adapters #27

nekkron opened this issue Apr 12, 2021 · 2 comments

Comments

@nekkron
Copy link

nekkron commented Apr 12, 2021

PS C:\Users\username> Install-Module -Name wifiprofilemanagement                                                                                                                                                                               Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): y
PS C:\Users\username> Get-WiFiAvailableNetwork
Get-WiFiInterfaceGuid : Wi-Fi interface not found on the system.
At C:\Program Files\WindowsPowerShell\Modules\wifiprofilemanagement\0.5.0.0\WiFiProfileManagement.psm1:112 char:22
+ ... rfaceGUID = Get-WiFiInterfaceGuid -WiFiAdapterName $WiFiAdapterName - ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-WiFiInterfaceGuid

my network adapter was renamed from the default to wlan0.

@MarkMae
Copy link

MarkMae commented Aug 19, 2021

same issue here, with a Dell Latitude 5510 with a Intel Wi-Fi 6 AX201 network card...

Get-WiFiInterfaceGuid : Wi-Fi interface not found on the system.

any sugestions?

@FlyingSpaghettiCodeMonster
Copy link

FlyingSpaghettiCodeMonster commented May 5, 2022

I had the same issue, mine was named 'Wi-Fi 2' since i moved this system drive from old hardware.
The Adapter name is hard coded in the module so my options were to change the code or the name of the interface.

  1. The former can be done here but breaks if the module is updated:
    C:\Program Files\WindowsPowerShell\Modules\wifiprofilemanagement\1.0.0.0\WiFiProfileManagement.psm1:112 char:22

  2. The latter required me to go into devmgmt.msc , activate View -> Show hidden devices
    and delete the old adapter, this way renaming the current one from 'Wi-Fi 2' to 'Wi-Fi' went without error.

Hope this helps someone. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants