如何使用 Windows 日志对客户位置发生的无线问题进行故障处理
Summary: 以下文章提供有关捕获事件跟踪日志 (ETL) 的信息。它包括 ETL 和其他文件,可帮助戴尔对仅在客户站点出现的无线问题进行故障处理。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
使用 Windows 中的现场日志对无线问题进行故障处理
在分析客户位置出现的无线问题时,Windows 操作系统中的许多日志会很有帮助,特别是当这些问题无法在其他网络环境中复制时。
查找、创建和导出日志
先前测试中已存在的日志:
- 在第一次遇到计算机之前,它可能已创建有价值的日志。而
WLANAutoconfig.log可以在 Windows 事件查看器中找到并手动保存事件查看器中的文件(如果尚未编译到 cabinet (CAB) 文件中):- 在事件查看器中,转至应用程序和服务日志。
- 转至 Microsoft。
- 转至 Windows。
- 然后打开
Wlan-autoconfig文件夹中。
- 而
NETSH下面的脚本输出到C:\wlogs文件夹中:
WLAN-autoconfig 诊断日志记录
启用 WLAN-autoconfig 在将来的测试之前,诊断登录到受测系统 (SUT)。这可能有助于生成更详细的日志消息。使用以下说明。
要启用诊断日志:
- 打开“事件查看器”,然后转到:
- 应用程序和服务日志
- 然后 Microsoft
- 然后 Windows
- 然后
Wlan-Autoconfig
- 右键单击
Wlan-Autoconfig文件夹中。 - 然后选择查看。
- 显示分析和调试日志。
- 诊断日志显示在 Autoconfig 文件夹下。
- 右键单击诊断日志并选择:启用日志
提醒:请注意,您必须从事件查看器中手动保存此日志,以便在测试后与戴尔共享。它可能不会自动位于
NETSH 输出 cab 文件夹。
Netsh 供参考的脚本文本:(复制以下文本并粘贴到记事本中,并将文件另存为 ETL.bat)
@echo off
rem PASTE THIS SCRIPT INTO NOTEPAD AND SAVE AS A .BAT FILE. RT CLICK THE FILE AND RUN AS ADMINISTRATOR.
rem DO NOT CREATE DIRECTORY IF IT ALREADY EXISTS
if exist c:\wlogs goto SKIPMKDIR
mkdir c:\wlogs
:SKIPMKDIR
rem BEGIN TRACE
netsh ras set tracing * enable
rem BUNDY, I WOULD LIKE TO DYNAMICALLY GENERATE THE FILENAME wlan001.etl TO AVOID WRITING OVER PREVIOUS LOGS
SET file1=1
IF EXIST c:\wlogs\wlan%file1%.etl GOTO nextlog
netsh trace start scenario=wlan tracefile=c:\wlogs\wlan1.etl capture=yes persistent=yes maxsize=250 report=yes
filemode=append
GOTO filedone
:nextlog
SET /A "file1+=1" IF EXIST c:\wlogs\wlan%file1%.etl GOTO nextlog
netsh trace start scenario=wlan tracefile=c:\wlogs\wlan%file1%.etl capture=yes persistent=yes maxsize=250 report=yes
filemode=append
:filedone
rem DISPLAY PROMPT TO PRESS ANY KEY TO STOP THE CAPTURE
set /p =Press any key to stop the capture. < nul
pause > nul
rem STOP TRACE
netsh trace stop
rem DISPLAY RESULTS AND PROMPT TO HIT ANY KEY BEFORE ENDING
pause
Affected Products
Alienware, Dell All-in-One, Dell Pro All-in-One, Dell Pro Max Micro, Dell Pro Max Slim, Dell Pro Max Tower, Dell Pro Micro, Dell Pro Slim, Dell Pro Tower, Dell Slim, Dell Tower, Inspiron, Legacy Desktop Models, OptiPlex, Vostro, XPS, G Series
, Chromebook, G Series, Alienware, Dell Laptops, Dell Plus, Dell Pro, Dell Pro Max, Dell Pro Plus, Dell Pro Premium, Inspiron, Latitude, Dell Pro Rugged, Vostro, XPS, Legacy Laptop Models, Fixed Workstations, Mobile Workstations, Dell Pro Max Micro XE FCM2250
...
Article Properties
Article Number: 000150790
Article Type: How To
Last Modified: 30 Jul 2025
Version: 9
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.