Popular: Data updated November 10, 2026

Categories

Internet1,380
Communication324
Audio & video915
Graphics & design554
Office & productivity1,139
Developer tools3,194
AI tools559
Security & privacy396
System tools3,164
Games534
Education & science240
Network & IT290

SetupDiag silent install & uninstall

A diagnostic tool that can be used to obtain details about why a Windows upgrade was unsuccessful.

Commands for installing SetupDiag without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.

Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell

With winget

PowerShell
winget install --id Microsoft.SetupDiag -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Microsoft.SetupDiag -e --silent
winget uninstall --id Microsoft.SetupDiag -e --silent

By installer

32-bit · Portable

No installation needed (portable)

More from Microsoft Corporation

See all
  • PowerShellPowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.
  • PowerToysMicrosoft PowerToys is a set of utilities for power users to tune and streamline their Windows experience for greater productivity.
  • NuGetThe package manager for .NET
  • Microsoft Azure CLIThe Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
  • OpenSSH PreviewMicrosoft.OpenSSH.Preview
  • Bicep CLIA declarative language for describing and deploying Azure resources

Tags

Share