SetupDiag don't seem to work correctly, since is not creating the zip and log. When i run it from elevated cmd, there is following output:
C:\Users\User\Desktop>SetupDiag.exe
SetupDiag v1.7.0.0
Copyright (©) Microsoft Corporation. All rights reserved.
Usage:
/Output:[Full path and file name for output log file] - Optional - Specifies the name and location for the results log file.
/LogsPath:[Full path to logs]- Optional - Specifies the location of logs to parse. Defaults to checking the current system for logs.
/ZipLogs:[True | False] - Optional - Tells SetupDiag.exe to create a zip file containing the results and all the log files that were parsed. The default value is true.
/Format:[xml | json] - Optional - Specifies the output format for log files to be XML or JSON. If not specified, text format is used.
/Scenario:[Recovery | Debug] - Optional - Recovery instructs SetupDiag.exe to look for and process reset and recovery logs and ignore setup/upgrade logs.
Debug instructs SetupDiag to debug memory dumps if the requisite debug binaries are installed.
/Verbose - Optional - Creates a diagnostic log in the current directory, with debugging information and details about SetupDiag.
/NoTel - Optional - Tells SetupDiag.exe not to send diagnostic telemetry.
/RegPath - Optional - Instructs SetupDiag.exe to add failure information to the registry under the given path.
Registry paths should start with HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER and be accessible at the elevation level SetupDiag is executed under.
/AddReg - Optional - Instructs SetupDiag.exe to add failure information to the registry on the executing system.
SetupDiag will by default add failure information to the registry in Online mode only.
Registry data will go to HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup\Volatile\SetupDiag unless otherwise specified.
Examples:
Example 1 - Offline Mode
SetupDiag.exe /Output:C:\SetupDiag\Results.txt /LogsPath
:\Temp\Logs\Logs1 /RegPath:HKEY_CURRENT_USER\SYSTEM\SetupDiag
Instructs SetupDiag to parse setup/upgrade log files in the LogsPath directory and output the results to C:\Setupdiag\Results.txt.
Example 2 - Online Mode
SetupDiag.exe /Output:C:\SetupDiag\Results.xml /Format:xml
Instructs SetupDiag to look for setup/upgrade logs on the current system and output its results in XML format to C:\SetupDiag\Results.xml.
Example 3 - Online Mode, no parameters needed
SetupDiag.exe
Instructs SetupDiag to look for setup/upgrade logs on the current system and output the results to the same directory where SetupDiag is located.
Example 4 - Reset/Recovery Offline Mode
SetupDiag.exe /Output:C:\SetupDiag\RecoveryResults.log /LogsPath
:\Temp\Cabs\PBR_Log /Scenario:Recovery
Instructs SetupDiag to look for reset/recovery logs in the specified LogsPath location and output the results to the directory specified by the /Output parameter.
Example 5 - Reset/Recovery Online Mode
SetupDiag.exe /Scenario:Recovery /Format:xml
Instructs SetupDiag to look for reset/recovery logs on the current system and output its results in XML format.