Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows XP 撥號上網時間查詢:事件檢視器隱藏功能

編輯:Windows XP 系統介紹

寬帶普及後,撥號上網雖少見,但仍有用戶需計費或統計上網時長。XP 內建「事件檢視器」記錄每次 RemoteAccess 服務的連線/斷線事件,即使已斷線也能追溯完整時長。

操作步驟

  1. 控制台 →「管理工具」→「事件檢視器」。
  2. 左側樹狀結構右鍵「系統」→「屬性」→「篩選」分頁。
  3. 「事件來源」選 RemoteAccess,「類別」選 全部,確定。
  4. 右側清單即顯示所有撥號事件:Event ID 20176 為連線成功,20177 為斷線。每兩筆(連線→斷線)即為一次上網時段。
  5. 手動計算時間差,或右鍵「系統」→「匯出清單」存為文字檔,再用 Excel/腳本批次統計每日/每月總時長。

進階自動化:批次檔一鍵統計

@echo off
set LOG=%temp%\dialup.log
dumpel -s %computername% -l System -e 20176 -e 20177 -m RemoteAccess -o %LOG%
rem 後續可用 findstr / find / for 迴圈解析時間差,輸出 CSV

(需 Windows 2000 Resource Kit 的 dumpel.exe 或 PowerShell Get-WinEvent)

注意事項

  • 事件日誌大小預設 512KB,高頻撥號可能被覆寫。建議在「系統屬性」將最大日誌調大(如 10MB)。
  • 若使用 PPPoE 撥號(ADSL 內建撥號),事件來源可能為 RasClient 或 WANMiniport,需依實際日誌調整篩選條件。

善用事件檢視器,無需額外計費軟體即可精確掌握上網時長。

Copyright © Windows教程網 All Rights Reserved