Windows Tools

AdDiag Syntax

Overview | Notes | Syntax | Examples | Related Tools Open Command Prompt

AdDiag uses the following syntax:

One Step addiag [/verbose:{TRUE|FALSE}] [/user:{TRUE|FALSE}] [/trace: String] [/test: StringList] [/debug: Ulong] [/?:{TRUE|FALSE}]

Parameters

/verbose {TRUE|FALSE}
Specifies the level of detail returned.
Value Description
TRUE Runs diagnostics in verbose mode.
FALSE Runs diagnostics in concise mode. This is the default.
/user {TRUE|FALSE}
Specifies which diagnostics to run.
Value Description
TRUE Runs diagnostics for the user. This is the default.
FALSE Runs diagnostics for the computer.
/trace: String
Specifies in a string what system tracing should be turned on or off. The string must be between 1 and 260 characters in length.
Value Description
AppMgmtOn Turns on verbose logging for AppMgmt. The log file is generated at %WINDIR%\debug\usermode\appmgmt.log.
AppMgmtOff Turns off verbose logging for AppMgmt.
MSIOn Turns on verbose logging for Windows Installer. The log file is generated either at %WINDIR%\temp\msi*.log or %temp%\msi*.log.
MSIOff Turns off verbose logging for Windows Installer.
UserEnvOff Turns on verbose logging for the policy engine. The log file is generated at %WINDIR%\debug\usermode\userenv.log.
UserEnvOn Turns off verbose logging for the policy engine.
/test: StringList
Specifies the list of diagnostics to be run. The string must be between 1 and 260 characters, and multiple diagnostics must be separated by comma (,) or semicolon (;). The default StringList is "Info,TS,LocalApps,ServerApps,MSIApps,ADHistory,EventDump,All".
Value Description
Info Dumps general information.
TS Dumps Terminal Server information.
LocalApps Dump Local Managed Applications List.
ServerApps Dumps Server Deployed Applications List.
MSIApps Dumps Local MSI Applications List.
GPOList Dumps Local Group Policy Object List.
ScriptList Dumps Local Script Application List.
ADHistory Dumps Local Active Directory policy history.
MSIFeatures Dumps Local MSI Features List.
MSILinks Dump MSI shortcuts in the profile.
EventDump Dumps Application log related events.
Check Performs Active Directory Integrity check.
all Performs all tests.
/debug: Ulong
Specifies a debug level of Ulong where Ulong is an unsigned long (debug only).
/?:{TRUE|FALSE}
Specifies whether command-line help is displayed.
Value Description
TRUE Displays command-line usage.
FALSE Does not display command-line usage. This is the default.

Examples

See Example 1: Display Diagnostic Information for the Local Computer.