October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Redmond desk3 min

How to Extract a CAB File in Windows 11

Windows 11 can list and extract CAB files with the built-in expand command. See commands for all files or selected files, plus when package servicing requires DISM.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To extract a CAB file in Windows 11, open Command Prompt and run expand "C:pathfile.cab" -f:* "C:pathoutput", replacing the paths with your cabinet file and an existing destination folder. To inspect the files first without extracting them, use expand -d "C:pathfile.cab". These commands unpack files; installing a Windows package from a CAB is a separate task.

What a CAB file is

A CAB, or cabinet, is a single file—usually with a .cab extension—that stores compressed files. It is commonly used to package multiple files together. Windows 11 includes the expand command for listing and extracting cabinet contents. Microsoft’s cabinet file overview explains the format, and its expand reference lists Windows 11 among the applicable platforms.

As an Amazon Associate I earn from qualifying purchases.

Extract every file with Command Prompt

  1. Make sure the destination folder already exists. In File Explorer, create one if needed, such as C:CAB-Extracted.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. Open Command Prompt. You can search for Command Prompt from Start and open it; administrator access is not ordinarily needed just to extract files into a folder you can write to.

  3. Run this command, substituting the actual CAB path and destination:

    expand "C:pathfile.cab" -f:* "C:pathoutput"

  4. Check the destination folder for the extracted files. If the command reports that a path cannot be found, verify the source file path and create the output folder before trying again.

Quotes around paths protect spaces in folder and file names. The -f:* option selects all files in the cabinet; Microsoft documents -f:<files> for selecting cabinet files and supports wildcards. See the command syntax and options.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

List contents or extract only selected files

List files without extracting

Use this command to display the cabinet’s file list:

expand -d "C:pathfile.cab"

The -d option lists files without expanding or extracting them, which is useful when you do not know the internal filename you need.

Extract a specific file or matching files

Replace the asterisk with a filename or wildcard pattern. For example, to select a file named driver.inf:

Rank #3

expand "C:pathfile.cab" -f:driver.inf "C:pathoutput"

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use the exact name shown by the listing command. The selected-file option accepts wildcards, so a pattern can be used when appropriate.

Choose the right operation: extraction or package installation

Extracting a CAB gives you its files in a folder. It does not install or apply the package. If the CAB is a Windows operating-system package and your goal is to add it to or remove it from a Windows image, use DISM package servicing rather than treating it as an ordinary archive. Microsoft documents options including /Add-Package, /Remove-Package, and package-information queries in its DISM operating system package servicing reference. Follow the appropriate servicing procedure for the image and package; extracting its contents alone does not perform that operation.

Rank #4
Windows 11 Laptop with i3 Processor 15.6" Work Laptop for College Students
  • 【Efficient Performance】 Powered by Intel Core i3 processor (2 cores, 4 threads, up to 3.4GHz) with 12GB RAM and 256GB SSD. Handles multitasking, office software, online classes, and HD video streaming smoothly. Integrated Intel UHD Graphics 620
  • Backlit Keyboard & Complete Package】Comes with a cool backlit keyboard. Comes with awebcam, dual stereo speakers (8Ω/1.0W each), DC charger, and user manual – ready for late-night studying, online classes, video conferencing, and daily productivity
  • 【Vibrant Display】 15.6-inch Full HD (1920x1080) anti-glare screen with 16:9 aspect ratio delivers crisp images and vivid colors – perfect for studying, watching lectures, or entertainment. Thin-bezel design maximizes viewing area
  • 【Fast Connectivity & Expansion】 Equipped with WiFi 6 (802.11ax) and Bluetooth 5.2 for stable, high-speed wireless. Features 3 x USB 3.0, HDMI 2.1, Type-C (supports PD3.0 fast charging), and a TF card slot expandable up to 2TB – easily connect external monitors, mice, drives, or expand storage for all your files
  • 【Long Battery Life & Portable】 Built-in 11.55V 5000mAh/57.75Wh high-capacity battery delivers approximately 7 hours of mixed-use battery life – enough for a full day of classes and assignments. Lightweight at just 1.63kg (3.6 lbs) and 19.5mm thin, plus a compact packing size – easily slips into a backpack for campus, library, or coffee shop
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Other options

Extrac32

Windows also includes Extrac32, another cabinet command-line utility. Microsoft’s extract documentation says the older Extract.exe is not provided or supported on Windows 10 and newer, and identifies Extrac32.exe as its replacement. The same documentation notes that Extrac32’s command-line interface does not display output in the console, so expand is the more straightforward choice for a visible listing or a basic extraction walkthrough.

Graphical archive managers

A third-party archive manager is optional if you prefer a graphical interface. You do not need one for the basic task: Windows’ built-in expand command can list and extract CAB files. File Explorer behavior can vary, so the reliable documented method here is the command-line procedure above rather than assuming every Windows 11 build offers a CAB extraction workflow in Explorer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00
Bestseller No. 3
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.