To extract a CAB file on Windows, double-click it: File Explorer opens it like a folder, and you can select the files inside and drag them out, or right-click and choose Extract. For large CAB files, or to extract everything at once, use the built-in command expand file.cab -F:* C:\destination in Command Prompt. If the CAB is a Windows update package, do not extract it at all: install it with DISM instead.
This guide explains what CAB files are, walks through each extraction method, and covers the errors and edge cases you may meet.
What is a CAB file?
CAB, short for Cabinet, is Microsoft's own archive format. It bundles and compresses many files into one, much like a ZIP, and has been part of Windows since the 1990s. You meet CAB files in a few places:
- Driver packages downloaded from the Microsoft Update Catalog or hardware vendors.
- Windows updates, either as standalone
.cabfiles or inside.msuupdate packages. - Installers, where a setup program stores its files in one or more CABs alongside an MSI.
- Windows itself, in folders such as
C:\Windows\WinSxSand on installation media.
CAB files are not dangerous on their own, but some contain drivers and system files. Extracting is harmless; replacing system files with what you extracted is where things can go wrong.
Method 1: File Explorer
- Double-click the CAB file. It opens as a folder showing its contents.
- Select the files you need. Press Ctrl+A for all of them.
- Right-click the selection and choose Extract, then pick a destination folder. Or drag the files to a folder in another File Explorer window.
This is fine for small CABs. File Explorer can be very slow with CABs that hold thousands of files, and it does not show the internal folder structure of some installer CABs. If it struggles, use one of the methods below.
Method 2: The expand command
Windows includes expand.exe, a command-line tool made for CAB files. It is fast and extracts everything in one go.
- Create the destination folder first, for example
C:\cab-out. expand will not create it for you. - Open Command Prompt. You only need to run it as administrator if the destination is a protected folder.
- Run:
expand C:\Downloads\driver.cab -F:* C:\cab-out - Open the destination folder to see the extracted files.
Useful variations:
| Command | What it does |
|---|---|
expand -D file.cab | Lists the files inside without extracting |
expand file.cab -F:*.inf C:\cab-out | Extracts only files matching a pattern |
expand file.cab -F:setup.exe C:\cab-out | Extracts one named file |
expand -R file.cab C:\cab-out | Renames compressed files to their original names |
expand -F:* update.msu C:\msu-out | Extracts the CAB files from inside an MSU update package |
Quote paths that contain spaces, for example expand "C:\My Downloads\driver.cab" -F:* "C:\cab out". Unquoted spaces are the most common reason expand reports that it cannot find a file.
Method 3: An archive program
An archive program treats CAB like any other archive, so you can browse it, search inside it and extract it from the right-click menu. Universal Zip opens CAB files along with ZIP, RAR, 7Z, ISO and more than 30 other formats:
- Right-click the CAB file.
- Choose Extract to folder to unpack it into a new folder named after the CAB, or Extract Here.
- Or open it to browse the contents, preview text files such as
.inffiles, and drag out only what you need.
This is handy when you have a whole folder of CABs to unpack, because batch extraction handles them in one run, each into its own subfolder. Note that Universal Zip opens CAB files but does not create them; CAB is listed as open-only.
Installing a Windows update from a CAB
If the CAB is a Windows update, such as a cumulative update or language pack downloaded from the Microsoft Update Catalog, extracting it gives you a pile of manifests that are no use on their own. Install it instead:
- Open Command Prompt as administrator.
- Run:
dism /online /add-package /packagepath:C:\Downloads\update.cab - Restart if DISM asks you to.
For an .msu file, simply double-click it to run the Windows Update Standalone Installer, or use DISM with the MSU path on recent versions of Windows.
Installing a driver from a CAB
Driver CABs usually contain an .inf file plus the driver files. To install:
- Extract the CAB to a folder using any method above.
- Open Device Manager (right-click Start and choose it).
- Right-click the device and choose Update driver → Browse my computer for drivers.
- Point it at the extracted folder, leave Include subfolders ticked and click Next.
Alternatively, right-click the .inf file and choose Install (under Show more options on Windows 11). Only use drivers from Microsoft or your hardware maker.
Which method should you use?
For one small CAB, File Explorer is enough. For a large CAB, a scripted job or an MSU package, use expand. For regular work with CABs mixed in among ZIP, RAR and 7Z files, an archive program saves you switching tools. And for update packages, skip extraction and use DISM.
Troubleshooting CAB extraction
- "Can't open input file". Check the path, quote it if it has spaces, and make sure the file finished downloading.
- Extraction stops or files are missing. Some installers spread their files across several CABs (
data1.cab,data2.cab). Keep the whole set together and start with the first. - "Access is denied". You are extracting into a protected folder. Use a folder in your user profile, or run Command Prompt as administrator.
- Strange file names after extraction. Some installer CABs store files under internal IDs; the installer renames them during setup. Run the installer rather than extracting.
- The CAB will not open at all. It may be damaged or not actually a CAB. Test it in an archive program; see how to check if an archive is corrupted.
For other formats you might find alongside CAB files, the archive file formats list explains each extension, and how to open an ISO file on Windows covers disc images.
Frequently asked questions
What is a CAB file?
A Cabinet file is a Microsoft archive format used for drivers, updates and installer files. It works much like a ZIP.
How do I extract a CAB file with Command Prompt?
Run expand file.cab -F:* C:\destination, replacing the names with your own. The destination folder must already exist.
Can I install a Windows update from a CAB file?
Yes. Update CAB packages are installed with DISM rather than by extracting them, for example dism /online /add-package.
