Skip to content

Instantly share code, notes, and snippets.

@joshschmelzle
Last active December 20, 2019 19:53
Show Gist options
  • Save joshschmelzle/580099f7894ee3229f6342b0f7184196 to your computer and use it in GitHub Desktop.
Save joshschmelzle/580099f7894ee3229f6342b0f7184196 to your computer and use it in GitHub Desktop.
PowerShell Command Reference

Get Event Log messages specific to netwtwXX errors

Get-EventLog System -Newest 10 -EntryType error -Source 'netw*' | Select Index, TimeGenerated, Source, EventID, InstanceID, Message | Format-Table -wrap  

 Index TimeGenerated        Source   EventID InstanceId Message
 ----- -------------        ------   ------- ---------- -------
124567 12/2/2019 6:26:10 AM Netwtw08    5005 3221230477 Intel(R) Wi-Fi 6 AX200 160MHz : Has encountered an internal error and has failed.
124566 12/2/2019 6:26:10 AM Netwtw08    5002 3221230474 Intel(R) Wi-Fi 6 AX200 160MHz : Has determined that the network adapter is not functioning properly.
124565 12/2/2019 6:26:10 AM Netwtw08    5005 3221230477 Intel(R) Wi-Fi 6 AX200 160MHz : Has encountered an internal error and has failed.
124564 12/2/2019 6:26:10 AM Netwtw08    5007 3221230479 5007 - TX/CMD timeout (TfdQueue hanged)

Get driver version of NIC from a remote device.

A nifty little Powershell one-liner that gets the driver version for a Wi-Fi NIC from remote device:

Get-WmiObject -Class Win32_PnPSignedDriver -ComputerName JOSHLAPTOP | select devicename, driverversion | where {$_.devicename -like "*Wireless*"} | Format-table -autosize -wrap

Get WLAN NIC band, transmit, and roaming settings

Get-NetAdapterAdvancedProperty Wi-Fi -DisplayName *Band*,*Transmit*,*Roam* | ft DisplayName, DisplayValue, ValidDisplayValues

DisplayName            DisplayValue     ValidDisplayValues
-----------            ------------     ------------------
Transmit Power         5. Highest       {1. Lowest, 2. Medium-low, 3. Medium, 4. Medium-High...}
Roaming Aggressiveness 3. Medium        {1. Lowest, 2. Medium-low, 3. Medium, 4. Medium-High...}
Preferred Band         1. No Preference {1. No Preference, 2. Prefer 2.4GHz band, 3. Prefer 5GHz band}                                   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment