How to extract .cab file and install .msp file through powershell.

D Vijayakumar VLR 126 Reputation points

Hi All,

I have few .cab file if we click it shows one setup file that file extension is .MSP it means ms office 2010, 2013, 2016 related, so i want to extrat that cab file and install that extracted file it means .msp file through powershell script.

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,189 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,766 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 37,641 Reputation points

    Hello @D Vijayakumar VLR

    you can use the msiexec command to install this MSP files. From Powershell would looks :

    Start-Process msiexec -ArgumentList '/p yourpatchfile.msp /qn'

    You can see other parameters for msiexec at:

    Hope this helps with your query,

    --If the reply is helpful, please Upvote and Accept as answer--

  2. 2022-08-17T11:51:48.387+00:00

    Hello, I am also looking for a solution to extract .exe or msi from cabinet file and save it one place so that I can use these to install