WifiConnectionAPI
2.5.0.1
Manage WiFi, through the Windows WinRT API. Supports one-line connections and native object piping.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2021 Tvanleeuwen. All rights reserved.
Package Details
Author(s)
- Tvanleeuwen
Tags
wifi wi-fi radio connectivity automation networkadapter wpa2 wpa3 enterprise 8021x 802.1x user password eap radius bssid ssid winrt
Functions
Connect-WiFiNetwork Connect-WifiNetworkWps Search-WifiNetworks Disconnect-WifiNetwork Get-InternetConnectionCost Get-WifiCurrentConnection Get-WifiConnectionProfile Get-WiFiAvailableAdapter Get-WifiDeviceInformation Get-WifiAvailableNetworks Get-WifiNetworkWpsCapability Get-RadioState Set-RadioState Remove-WifiConnectionProfile Request-LocationPermission Set-WifiHotSpot
PSEditions
Dependencies
This module has no dependencies.
Release Notes
Major Update V2.5.0.0
Rebuilt the foundation.
Removed the PSSession bridge in favor of native WinRT projections for PowerShell 7.
This restores full pipeline support and improves session stability.
Minor Update V2.4.0.3
These function now work from 7.5 using pssession
Piping is not supported when using pssession
"Set-RadioState", (Use Index to target the radio you want to switch On/Off)
"Get-RadioState",
"Get-WifiAvailableNetworks",
"Search-WifiNetworks",
"Connect-WifiNetwork",
"Request-LocationPermission"
Minor Update V2.4.0.2
New Features:
WPS PIN and Push Button Support:
Added support for WPS (Wi-Fi Protected Setup) PIN and Push Button methods.
Allows easier connection to compatible Wi-Fi networks without requiring a password.
Hidden SSID Fix:
Fixed the oversight where hidden SSIDs weren't handled properly. Now, the Connect-WifiNetwork function correctly passes the SSID when connecting to hidden networks.
Codebase Overhaul:
The code has been completely reworked for better readability and maintainability.
Refined structure to make future updates and bug fixes easier to implement.
Bug Fixes & Improvements:
Location Access Handling:
The Request-LocationPermission function now checks for location access properly before attempting to connect to networks, preventing failures related to lack of location access.
Hidden Network Support:
Reworked hidden network support to function properly. When connecting to a hidden SSID, the SSID is now correctly passed in the ConnectAsync call.
WPS Support:
Pin: Added support to connect using WPS PIN method.
Push: Added support for WPS push button connection method.
Other Notable Changes:
Autocompleter Improvements:
Enhanced the autocompleter for SSID, BSSID, and other network-related commands.
Timeout Adjustments:
Default timeout for Await function is now 10 seconds, with customizability up to 60 seconds using the -TimeoutMS parameter.
Multi-Adapter Support:
Target specific Wi-Fi adapters using the -Index parameter, giving more flexibility when managing multiple network adapters.
FileList
- WifiConnectionAPI.nuspec
- Core\Private\Functions.ps1
- Core\Private\ScriptBlocks.ps1
- Core\Public\Connectivity\Get-InternetConnectionCost.ps1
- Core\Public\Geolocation\Request-LocationPermission.ps1
- Core\Public\HotSpot\WifiHotSpot.ps1
- Core\Public\Radio\Get-RadioState.ps1
- Core\Public\Radio\Set-RadioState.ps1
- Core\Public\Wifi\Connect-WifiNetwork.ps1
- Core\Public\Wifi\Connect-WifiNetworkWps.ps1
- Core\Public\Wifi\Disconnect-WifiNetwork.ps1
- Core\Public\Wifi\Get-WifiAvailableAdapters.ps1
- Core\Public\Wifi\Get-WifiAvailableNetworks.ps1
- Core\Public\Wifi\Get-WifiConnectionProfile.ps1
- Core\Public\Wifi\Get-WifiCurrentConnection.ps1
- Core\Public\Wifi\Get-WifiDeviceInformation.ps1
- Core\Public\Wifi\Get-WifiNetworkWpsCapability.ps1
- Core\Public\Wifi\Remove-WiFiConnectionProfile.ps1
- Core\bin\Microsoft.Windows.SDK.NET.dll
- Core\bin\WinRT.Runtime.dll
- Core\bin\info.txt
- Desktop\Private\ArgumentCompleters.ps1
- Desktop\Private\ArgumentCompleters7.ps1
- Desktop\Private\Await.ps1
- Desktop\Private\Functions.ps1
- Desktop\Private\ScriptBlocks.ps1
- Desktop\Public\Connectivity\Get-InternetConnectionCost.ps1
- Desktop\Public\Geolocation\Request-LocationPermission.ps1
- Desktop\Public\HotSpot\WifiHotSpot.ps1
- Desktop\Public\Radio\Get-RadioState.ps1
- Desktop\Public\Radio\Set-RadioState.ps1
- Desktop\Public\Wifi\Connect-WifiNetwork.ps1
- Desktop\Public\Wifi\Connect-WifiNetworkWps.ps1
- Desktop\Public\Wifi\Disconnect-WifiNetwork.ps1
- Desktop\Public\Wifi\Get-WiFiAvailableAdapter.ps1
- Desktop\Public\Wifi\Get-WifiAvailableNetworks.ps1
- Desktop\Public\Wifi\Get-WifiConnectionProfile.ps1
- Desktop\Public\Wifi\Get-WifiCurrentConnection.ps1
- Desktop\Public\Wifi\Get-WifiDeviceInformation.ps1
- Desktop\Public\Wifi\Get-WifiNetworkWpsCapability.ps1
- Desktop\Public\Wifi\Remove-WiFiConnectionProfile.ps1
- Desktop\Public\Wifi\Search-WifiNetworks.ps1
- WifiConnectionAPI.psd1
- WifiConnectionAPI.psm1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 2.5.0.1 (current version) | 5 | 3/29/2026 |
| 2.5.0.0 | 16 | 3/28/2026 |
| 2.4.0.3 | 66 | 3/19/2026 |
| 2.4.0.2 | 37 | 3/15/2026 |
| 2.4.0.1 | 100 | 3/7/2026 |
| 2.3.0.0 | 64 | 2/26/2026 |
| 2.2.0.0 | 10 | 2/25/2026 |
| 2.1.1.0 | 34 | 2/23/2026 |
| 2.1.0.0 | 2 | 2/23/2026 |
| 2.0.3.0 | 4 | 2/22/2026 |
| 2.0.2.1 | 69 | 2/18/2026 |
| 2.0.2.0 | 8 | 2/18/2026 |
| 2.0.1.0 | 16 | 2/17/2026 |
| 2.0.0.0 | 13 | 2/16/2026 |
| 1.0.0.2 | 2,784 | 1/4/2023 |