大网数据广告活动
启动与系统组件

Collect Data to Analyze and Troubleshoot Windows Networking Scenarios

· 52CE 我爱测

Helps gather information about your issue by using the TroubleShootingScript (TSS) toolset and learn what data to collect based on Windows networking scenarios.

This article helps gather information about your issue by using the TroubleShootingScript (TSS) toolset before contacting Microsoft support.

Prerequisites

Refer to Introduction to TroubleShootingScript toolset (TSS) for prerequisites for the toolset to run properly.

Scenario: Domain Name System (DNS)

TSS cmdlet

Client:

.\TSS.ps1 -Scenario NET_DNSCli

Server:

.\TSS.ps1 -Scenario NET_DNSSrv

TSS cmdlet description

Use this scenario to troubleshoot DNS-related issues affecting name resolution and service availability.

Trigger this scenario when clients experience the following issues:

  • Name resolution failures
  • Slow DNS lookups
  • Errors such as "DNS server not responding"

On the server side, use this scenario when:

  • DNS services crash or fail to respond.
  • There are suspected issues with DNS configuration or resolution flow.

This scenario helps identify problems such as:

  • Misconfigured DNS settings
  • Root hints issues
  • Name Resolution Policy Table (NRPT) policy conflicts
  • Forwarder or conditional forwarder misconfigurations

Note: For a complete diagnostic view, collect logs from both the client and the server when reproducing the issue.

Scenario: TCP/IP connectivity

TSS cmdlet

.\TSS.ps1 -Scenario NET_WinSock

TSS cmdlet description

Use this scenario to troubleshoot general network connectivity issues.

Trigger this scenario when users report problems such as:

  • Inability to reach websites
  • Network timeouts
  • Intermittent or unstable connectivity

This scenario helps diagnose issues related to:

  • TCP/IP stack behavior
  • Address Resolution Protocol (ARP) failures
  • Routing misconfigurations

Scenario: Access to file shares (Server Message Block (SMB))

TSS cmdlet

Client:

.\TSS.ps1 -Scenario NET_SMBCli

Server:

.\TSS.ps1 -Scenario NET_SMBSrv

TSS cmdlet description

Use this scenario to troubleshoot issues with accessing shared folders or file transfer.

Trigger this scenario when users encounter any of the following issues:

  • Errors such as "network path not found" or "access denied"
  • Inability to access shared folders
  • Slow file transfer performance

Note: For a complete analysis, collect logs from both the client and the server when reproducing the issue.

Scenario: Dynamic Host Configuration Protocol (DHCP)

TSS cmdlet

Client:

.\TSS.ps1 -Scenario NET_DHCPCli

Server:

.\TSS.ps1 -Scenario NET_DHCPSrv

TSS cmdlet description

Use this scenario to troubleshoot DHCP-related connectivity issues.

Trigger this scenario when devices can't obtain an IP address, display a "limited connectivity" status, or fail to renew their DHCP leases.

The client-side trace captures the full DORA (Discover, Offer, Request, Acknowledge) sequence, while the server-side trace helps identify potential issues such as:

  • DHCP scope exhaustion
  • Relay agent misconfigurations
  • Incorrect or missing DHCP options

Note: For a complete diagnostic view, collect logs from both the client and the server when reproducing the issue.

Scenario: Wired/wireless (802.1x, Bluetooth, Miracast, and mobile broadband)

TSS cmdlet

Wired:

.\TSS.ps1 -Scenario NET_802Dot1x

Wireless:

.\TSS.ps1 -Scenario NET_WLAN

TSS cmdlet description

Use this scenario to troubleshoot 802.1x (dot1x) authentication issues on both wired and wireless networks.

This scenario is designed to help diagnose authentication failures that occur when clients attempt to connect to the network using Ethernet or Wi-Fi.

Common issues include:

  • Authentication failures (for example, "authentication failed") on wired or wireless connections
  • Dropped Wi-Fi connections
  • Miracast pairing failures
  • Mobile broadband not connecting

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。