.DIAGCAB

DIAGCAB File

Windows Troubleshooting Pack (Troubleshooter Cabinet)
Ask a question
QUICK ANSWER

A DIAGCAB file is a Windows troubleshooter - a cabinet (CAB) archive containing PowerShell scripts that detect and fix a specific Windows problem such as printing, audio, or Windows Update. Double-click it on Windows to run the wizard. Only run diagcab files from Microsoft or a trusted vendor; malicious ones can execute code.

Developer: Microsoft Corporation Category: System Files MIME: application/vnd.ms-cab-compressed
OPENS ON Windows
Related: .NOMEDIA · .DLL · .TMP · .LNK

On this page

19k+ extensions indexed
Last reviewed Aug 3, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DIAGCAB file format?

.diagcab files contain a package of data, typically compressed, used in Windows system troubleshooting. The format is a standard Microsoft Cabinet archive - identifiable by the MSCF magic bytes at offset 0 - carrying a Windows Troubleshooting Pack: an XML answer file plus PowerShell scripts that define the diagnostic workflow. .diagcab was introduced with Windows 7 as part of the Windows Troubleshooting Platform (WTP); earlier Windows versions did not support it natively.

The .diagcab format is used by the Microsoft Support Diagnostic Tool, available as part of WTP - Windows' built-in problem diagnostics platform. A .diagcab pack can be used for identifying and fixing problems and errors in software, drivers, and devices used by the Windows system. Because the container is an ordinary .cab archive, its contents can also be inspected or generated with tools such as makecab.exe, Cabarc.exe, or any compatible archiver.

.diagcab files can be supplied by various independent hardware manufacturers together with the dedicated diagnostics software they ship with their products. They may also be delivered by system administrators via Group Policy or deployment tools. .diagcab files are typically digitally signed for authentication and security.

To run a .diagcab troubleshooter, double-click it or invoke msdt.exe with the /cab switch. This launches a Wizard that guides the user step-by-step through the troubleshooting process and may submit a diagnostic report for further analysis. Note that msdt.exe was deprecated in Windows 11 22H2 (October 2022) following the Follina vulnerability (CVE-2022-30190); Microsoft has been migrating built-in troubleshooters to the Get Help app and .diagpkg packages.

Security & safety

RISK: HIGH

A .diagcab runs PowerShell scripts through msdt.exe, so it can change system settings and execute code - treat it like a program, not a harmless data file. Only run .diagcab files that come directly from Microsoft or a vendor you trust; never one received by email/chat or from a random site. This format was central to the 2022 "Follina" (CVE-2022-30190) and "DogWalk" (CVE-2022-34713) remote-code-execution attacks, which abused crafted .diagcab/msdt handling and the fact that CAB files didn't show the usual Mark-of-the-Web warning. Microsoft has since patched msdt, added warnings, and is deprecating the legacy troubleshooter platform; keep Windows updated, and if in doubt open the .diagcab in 7-Zip to inspect its scripts before running, or use Settings → Troubleshoot instead.

Format details

in a nutshell
FULL NAMEWindows Troubleshooting Pack (Troubleshooter Cabinet)
DEVELOPERMicrosoft Corporationsince Windows 7 (2009) - Windows Troubleshooting Platform (WTP)
CATEGORYSystem Files
MIME TYPEapplication/vnd.ms-cab-compressed
TYPEMicrosoft Cabinet (CAB) archive containing a troubleshooting pack
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
4D534346
ASCII
MSCF
A .diagcab is an ordinary Microsoft Cabinet archive, so it starts with the CAB magic "MSCF" (4D 53 43 46) at offset 0. Inside it carries a TroubleshootingPack: an answer file plus PowerShell scripts that the Microsoft Support Diagnostic Tool / WTP runs.

Programs that open DIAGCAB files

Windows3 apps
Microsoft Support Diagnostic Tool (msdt.exe / built-in) Built-in Double-click the .diagcab to launch the troubleshooting wizard (only if it's from a trusted source). On Windows 11, prefer Settings → System → Troubleshoot for built-in fixes.
7-Zip (to inspect contents) Open-source Right-click → 7-Zip → Open archive to see the scripts/answer file inside without running them - useful to vet an untrusted .diagcab.
Windows Explorer / Makecab (CAB tooling) Built-in Windows can open the CAB to view files; makecab/expand are the command-line tools for packing/unpacking cabinet contents.

Technical details

deep spec
Container formatMicrosoft Cabinet (CAB) archive; binary structure is identical to standard `.cab` files
Magic bytes`4D 53 43 46` (ASCII `MSCF`) at offset 0 - standard Microsoft Cabinet header
MIME type`application/vnd.ms-cab-compressed`
DeveloperMicrosoft Corporation
IntroducedWindows 7 (2009) alongside the Windows Troubleshooting Platform (WTP)
Pack contentsXML manifest/answer file and one or more PowerShell `.ps1` scripts defining detection and resolution logic
Scripting languageWindows PowerShell - embedded scripts perform automated detection, diagnosis, and remediation
Default handler`msdt.exe /cab <file>` - Microsoft Support Diagnostic Tool (deprecated in Windows 11 22H2)
Execution UIWizard-driven GUI that guides the user step-by-step through detection, diagnosis, and fix steps
Digital signatureTypically Authenticode-signed; Windows verifies the signature before allowing execution
Deployment methodsDirect download, OEM hardware bundles, Group Policy, SCCM, or Windows Update
CAB compressionSupports LZX and MSZIP compression algorithms inherited from the Microsoft Cabinet format
Deprecation status`msdt.exe` and `.diagcab` execution deprecated in Windows 11 22H2 (Oct 2022) due to CVE-2022-30190 (Follina); Get Help app is the designated successor
File associationRegistered on Windows 7+ to open with `msdt.exe`; archive contents inspectable with any `.cab`-compatible tool
ReleasedWindows 7 (2009) - Windows Troubleshooting Platform (WTP)
Specificationlearn.microsoft.com

DIAGCAB conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DIAGCAB files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DIAGCAB files.

Frequently asked questions

What is a .diagcab file?
It's a Windows troubleshooter: a cabinet (CAB) archive containing a diagnostic pack of PowerShell scripts that detect and fix one specific Windows problem (printing, audio, Windows Update, etc.). Double-clicking it runs a fix-it wizard via msdt.exe.
How do I run a .diagcab file?
On Windows, double-click it and follow the wizard - but only if it's from Microsoft or a trusted vendor. On Windows 11 many fixes now live in Settings → System → Troubleshoot, which is the safer route.
Is it safe to open a .diagcab file?
Only from a trusted source. A .diagcab runs scripts and can change your system; malicious ones were used in the 2022 Follina/DogWalk attacks. Never run one from email or an unknown site - inspect it in 7-Zip first if unsure, and keep Windows patched.
Why won't my .diagcab run on Windows 11?
Microsoft is deprecating the legacy MSDT troubleshooter platform and tightened security after the Follina/DogWalk flaws, so some .diagcab files are blocked or simply no longer apply. Use Settings → System → Troubleshoot (Get Help) for the current troubleshooters.
How do I open a .diagcab to see what's inside?
It's a Microsoft Cabinet archive - open it with 7-Zip (Open archive) or Windows' expand command to view the PowerShell scripts and answer file without running them.
Can I open a .diagcab on Mac or Linux?
You can extract its contents with a CAB-capable archiver (7-Zip, cabextract), but you can't RUN it - the troubleshooter engine (msdt.exe) is Windows-only, so the fix only works on Windows.

References

1Microsoft Learn - Troubleshooting Pack cmdlets (WTP)learn.microsoft.com
2Microsoft - Deprecated features in Windows (MSDT troubleshooters)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.BINCD/DVD Disc Image (BIN/CUE)
4.PARTPartial Download File
5.DATProgram Data File (generic)
6.EXEWindows Executable (Portable Executable)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.TMPTemporary File
10.TXTPlain Text File

Related extensions

.NOMEDIAAndroid No-Media Marker File
.DLLDynamic Link Library
.TMPTemporary File
.LNKWindows Shell Link (Shortcut)
.PKGmacOS Installer Package
.ETLEvent Trace Log

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z