查询WIFI 连接的记录
@echo
netsh wlan show profiles
netsh wlan show wlanreport
POWERSHELL 脚本
Get-WinEvent -LogName 'Microsoft-Windows-WLAN-AutoConfig/Operational' |
Where-Object { $_.Id -in @(8001,8002) } |
Select-Object TimeCreated, Id, @{Name="Action"; Expression={ if($_.Id -eq 8001){"Connected"} else {"Disconnected"} }}, @{Name="SSID"; Expression={ ($_.Message -split "`n" | Where-Object {$_ -match "SSID"}) -replace ".*SSID: ","" }} |
Export-Csv -Path "$env:USERPROFILE\Desktop\Wifi_History_Report.csv" -NoTypeInformation
-
运行后会在
USERPROFILE\Desktop\
生成包含连接/断开时间和SSID的CSV文件。 -
文件名Wifi_History_Report.csv
通过第三方工具
-
WirelessNetView(NirSoft出品)
-
下载地址:https://www.nirsoft.net/utils/wireless_network_view.html
-
功能:实时监控并记录所有WiFi连接时间、信号强度、断开时间等。
-
无需安装,直接运行即可查看历史会话。
-
-
WifiHistoryView(同NirSoft)
-
专为查看历史记录设计:https://www.nirsoft.net/utils/wifi_history_view.html
-
显示每次连接的 开始时间、结束时间、持续时间 和 SSID。
-