/ _ \ \_\(_)/_/ _//"\\_ more on JOHLEM.net / \ 0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0o0 Wi-Fi Management Commands: --------------------------- 1. **Get-NetAdapter** List all network adapters, including Wi-Fi adapters. Syntax: Get-NetAdapter Example: Get-NetAdapter | Where-Object { $_.Name -like "*Wi-Fi*" } 2. **Get-NetAdapterStatistics** Display statistics for a network adapter, such as a Wi-Fi adapter. Syntax: Get-NetAdapterStatistics -Name "Wi-Fi" 3. **Enable-NetAdapter** Enable a Wi-Fi adapter. Syntax: Enable-NetAdapter -Name "Wi-Fi" 4. **Disable-NetAdapter** Disable a Wi-Fi adapter. Syntax: Disable-NetAdapter -Name "Wi-Fi" 5. **Get-NetConnectionProfile** Display the current network connection profiles, including Wi-Fi. Syntax: Get-NetConnectionProfile 6. **Get-NetIPAddress** Display the IP address assigned to a Wi-Fi adapter. Syntax: Get-NetIPAddress -InterfaceAlias "Wi-Fi" 7. **Get-NetRoute** Display the routing table for the Wi-Fi connection. Syntax: Get-NetRoute -InterfaceAlias "Wi-Fi" 8. **Get-NetAdapterAdvancedProperty** Display advanced properties of the Wi-Fi adapter. Syntax: Get-NetAdapterAdvancedProperty -Name "Wi-Fi" 9. **Set-NetAdapterAdvancedProperty** Set advanced properties for the Wi-Fi adapter. Syntax: Set-NetAdapterAdvancedProperty -Name "Wi-Fi" -DisplayName "Property Name" -DisplayValue "Value" 10. **Get-WiFiNetwork** Display the list of available Wi-Fi networks. Example Script: ``` netsh wlan show networks ``` 11. **Connect-WiFiNetwork** Connect to a Wi-Fi network. Example Script: ``` netsh wlan connect name="NetworkName" ssid="SSID" interface="Wi-Fi" ``` 12. **Disconnect-WiFiNetwork** Disconnect from the current Wi-Fi network. Example Script: ``` netsh wlan disconnect interface="Wi-Fi" ``` 13. **Get-WiFiProfile** Display saved Wi-Fi profiles. Example Script: ``` netsh wlan show profiles ``` 14. **Export-WiFiProfile** Export a Wi-Fi profile to an XML file. Example Script: ``` netsh wlan export profile name="NetworkName" folder="C:\Path\To\Folder" key=clear ``` 15. **Import-WiFiProfile** Import a Wi-Fi profile from an XML file. Example Script: ``` netsh wlan add profile filename="C:\Path\To\Profile.xml" ``` 16. **Remove-WiFiProfile** Delete a saved Wi-Fi profile. Example Script: ``` netsh wlan delete profile name="NetworkName" ``` 17. **Get-WiFiSecurityKey** Retrieve the security key (password) for a saved Wi-Fi profile. Example Script: ``` netsh wlan show profile name="NetworkName" key=clear ``` 18. **Set-NetIPInterface** Configure the IP interface properties for a Wi-Fi adapter. Syntax: Set-NetIPInterface -InterfaceAlias "Wi-Fi" -Dhcp Enabled 19. **Set-DnsClientServerAddress** Set the DNS server for a Wi-Fi adapter. Syntax: Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses "8.8.8.8" 20. **New-NetIPAddress** Assign a static IP address to the Wi-Fi adapter. Syntax: New-NetIPAddress -InterfaceAlias "Wi-Fi" -IPAddress "192.168.1.100" -PrefixLength 24 -DefaultGateway "192.168.1.1" +----------------------------------------------------------+ | Note: Wi-Fi management commands provide comprehensive | | control over wireless network connections, | | including connecting to networks, managing | | profiles, and configuring adapter settings. | +----------------------------------------------------------+