PowerShell Logo Small

Get-WindowsPackage



This is the built-in help made by Microsoft for the command 'Get-WindowsPackage', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets information about packages in a Windows image.

SYNTAX


Get-WindowsPackage [-LogLevel <LogLevel>] [-LogPath <String>] [-PackageName <String>] [-PackagePath <String>] [-ScratchDirectory <String>] [-SystemDrive <String>]
[-WindowsDirectory <String>] -Online [<CommonParameters>]
Get-WindowsPackage [-LogLevel <LogLevel>] [-LogPath <String>] [-PackageName <String>] [-PackagePath <String>] [-ScratchDirectory <String>] [-SystemDrive <String>]
[-WindowsDirectory <String>] -Path <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-WindowsPackage cmdlet gets information about all packages in a Windows image or about a specific package that is provided as a .cab file.


Use the Online parameter to specify the running operating system on your local computer, or use the Path parameter to specify the location of a mounted Windows image.


Use either the PackageName or PackagePath parameter to get more detailed information about a specific package in the Windows image such as whether the package can be
installed completely offline without booting the image.


You cannot use this command to obtain detailed package information for .msu files, only .cab files.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=289359
Add-WindowsPackage
Remove-WindowsPackage

REMARKS

<

Examples


Example 1

PS C:\>Get-WindowsPackage –Path c:\offline



This command lists all of the packages in the Windows image that is mounted to c:\offline.






Example 2

PS C:\>Get-WindowsPackage –Path c:\offline –PackageName Microsoft-Windows-Backup-Package~31bf3856ad364e35~x86~~6.1.7601.16525



This command displays detailed information about the specified package in the Windows image that is mounted to c:\offline.