Error Fixer

No More Errors!

How to Extract a CAB File in PowerShell in Windows 10

Do you want to extract some CAB files in Windows with PowerShell? Well, here’s your solution.

Extract CAB Files in PowerShell in the Same Folder

  • Press Windows + R to open the Run box. Type Powershell and press Enter.
  • Go to the directory where your CAB files are present. For that, you can use the Set-Location command. For e.g., if you want to switch from the default %userprofile% folder to the D:\MyFiles folder, you can type the following:
    Set-Location -Path D:\MyFiles

Note: If you want to extract the CAB files somewhere in the C:\ drive, you’ll need to run the PowerShell as an administrator to make it work. For that, simply look for it in the Start menu search and right-click > Run as Administrator. After that, follow the usual process.

  • Once you are in the folder with your CAB files, you can use the expand.exe program to extract your CAB files.
    cmd.exe /c "C:\Windows\System32\expand.exe -F: <>

Note: Don’t actually put ‘<‘ and ‘>’ in the command because that will cause an error to show up.

Extract CAB Files in PowerShell in a Different Folder

Now, if you don’t want to extract the files in the same folder as the CAB files, you can modify the command to put to the folder location of your choice.

cmd.exe /c "C:\Windows\System32\expand.exe -F: <> <full folder location>

You will need to enter the full location of the folder you want to extract your CAB files in. For e.g., you’ll write C:\tempFiles in the place of the full folder location. Again, remember to not use the ‘<‘ and ‘>’ signs in the actual commands.

Leave a Reply

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

Error Fixer © 2015-2017 Frontier Theme