Skip to content

Needs adjusting to include terms "*Wi-Fi*" and "*Hyper-V*" to work properly #5

@timothymowens

Description

@timothymowens

This script stopped working for me when I replaced my Wi-Fi card and also when I started using WSL2. This was due to two reason, first, the WLANManager.ps1 script is detecting "WiFi", but not "Wi-Fi" (Note: there's a dash in the 2nd one). When I added this into the script in the two places where "WiFi" is located, it properly detected the WLAN connection.

The 2nd issue, in the Test-Connection function of the PSModule-WLANManager.psm1 module, it is detecting Hyper-V virtual adapters as wired adapters. Adding -and ($_.Description -notlike "*Hyper-V*") to all the conditions fixed this issue.

After making these changes, I reinstalled the WLANManager and all is good.

See attached files to see the changes I made.
WLANManager-Fixed-20200904.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions