Log in Register

Log in

dcdiag command - syntax, switches, options and examples

dcdiag command - syntax, switches, options and examples Hot

 
0.0 (0)
1249   0   0   0   0  
Write Review

Use of command name

Analyzes the state of domain controllers in a forest or enterprise and reports any problems to help in troubleshooting.

 

command name syntax

dcdiag [/s:] [/n:] [/u: /p:{* | | ""}] [{/a | /e}] [{/q | /v}] [/i] [/f:] [/c [/skip:]] [/test:] [/fix] [{/h | /?}] [/ReplSource:]

 

command name switches

/s: : Specifies the name of the server to run the command against. 

/n: : Uses NamingContext as the naming context to test. 

/u: /p:{* | | ""} : Uses DomainUserName. Dcdiag uses the current credentials of the user (or process) that is logged on.

/a : Tests all the servers on this site.

/e  :Tests all the servers in the enterprise. Overrides /a.

/q : Quiet. Prints only error messages.

/v : Verbose. Prints extended information.

/i : Ignores superfluous error messages.

/fix : Affects the MachineAccount test only. 

/f: : Redirects all output to a log file (LogFile).

/c : Comprehensive. Runs all tests except DCPromo and RegisterInDNS, including non-default tests. 

{/h | /?} : Displays help at the command prompt.

/test: : Runs this test only. The Connectivity test, which you cannot skip, is also run. 

/ReplSource: l : Tests the connection between the domain controller on which you run the command and the source domain controller. 

 

commnad examples

In this example, you want to examine the domain controller so you can verify that it is healthy and functioning properly. Type the following command at the elevated command prompt:

C:Windowssystem32>dcdiag /s:reskit-DC1 administrator password

User reviews

There are no user reviews for this listing.
Already have an account? or Create an account