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

Collect Data to Analyze and Troubleshoot Active Directory Scenarios

· 52CE 我爱测

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

This article helps you 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: Active Directory replication and topology

TSS cmdlet

Client:

.\TSS.ps1 -Scenario ADS_AuthEx

Server (domain controller (DC)):

.\TSS.ps1 -Scenario ADS_Auth

TSS cmdlet description

Run this cmdlet on both the source and destination DCs to gather data at the same time. Begin logging on both DCs using the TSS cmdlet and reproduce the issue by initiating replication with the repadmin /replicate cmdlet. For example, repadmin /replicate dest-dc01 source-dc01 DC=contoso,DC=com.

Scenario: Active Directory Certificate Services (ADCS)

TSS cmdlet

Client:

.\TSS.ps1 -Scenario ADS_AuthEx

Server:

.\TSS.ps1 -Start -ADS_ADCS

TSS cmdlet description

Depending on the issue or scenario, you can run this cmdlet only on the ADCS server, the client, or both. Begin logging using the TSS cmdlet and reproduce the issue.

Scenario: Authentication issues (Kerberos and New Technology LAN Manager (NTLM))

TSS cmdlet

Client:

.\TSS.ps1 -Scenario ADS_AuthEx

Server:

.\TSS.ps1 -Scenario ADS_Auth

TSS cmdlet description

Depending on the specific issue or scenario, you might need to gather data from the client, the server, and the DC, or from all three sources. For thorough troubleshooting, it's important to obtain data from all three sources. However, if you can't retrieve logs from the DC, you can continue logging on the client and server with the TSS cmdlet, and reproduce the issue.

Scenario: Domain join

TSS cmdlet

Client:

.\TSS.ps1 -Scenario ADS_AuthEx

Server:

.\TSS.ps1 -Scenario ADS_Auth

TSS cmdlet description

Depending on the specific issue or scenario, you might need to gather data from the client and the DC. However, if you can't retrieve logs from the DC, you can continue logging on the client with the TSS cmdlet, and reproduce the issue.

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 - Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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