关于dcdiag,可以在microsoft的文献资料中找到相关描述, 链接如下:
Dcdiag
Dcdiag
适用于:Windows Server 2003,Windows Server 2008,Windows Server 2003 R2,Windows Server 2012,带有SP1,Windows 8的Windows Server 2003
分析林或企业中域控制器的状态,并报告所有问题以帮助进行故障排除。
作为最终用户报告程序,dcdiag是一个命令行工具,它封装了有关如何识别系统中异常行为的详细知识。Dcdiag在命令提示符下显示命令输出。
Dcdiag由执行测试的框架和一系列验证系统不同功能区域的测试组成。该框架根据用户(例如企业,站点或单个服务器)的作用域指令选择要测试的域控制器。
Dcdiag内置在Windows Server 2008 R2和Windows Server 2008中。如果您安装了Active Directory域服务(AD DS)或Active Directory轻型目录服务(AD LDS)服务器角色,则可用。如果您安装作为远程服务器管理工具(RSAT)一部分的Active Directory域服务工具,它也将可用。有关更多信息,请参阅如何在本地和远程管理Microsoft Windows客户端和服务器计算机(https://go.microsoft.com/fwlink/?LinkID=177813)。
语法
dcdiag [/s:] [/n:] [/u:<UserName> /p:{* | | “”}] [{/a | /e}] [{/q | /v}] [/i] [/f:] [/c [/skip:]] [/test:] [/fix] [{/h | /?}] [/ReplSource:]
由上可以了解到,dcdiag需要在windows server上运行,在服务器上安装windows server 2019,然后安装dcdiag工具,之后在cmd中执行该工具,报错:
C:\Program Files (x86)\Resource Kit>dcdiag.exe
Domain Controller Diagnosis
Performing initial setup:
***Error: xxxxxx is not a DC. Must specify /s:<Domain Controller> or /n:<Naming Context> or nothing to use the local machine.
服务器系统需要安装Active Directory。参考以下链接安装该服务。
Active Directory 域服务安装与测试
在cmd中执行dcdiag /h
可以得到以下帮助信息。
参考链接:
域控制器诊断工具 (dcdiag.exe)