CmdID

CmdID / PowerShell / Cmdlets / Expand

Expand-Archive

Extracts files from a specified ZIP archive file. PowerShell reference

From the PowerShell reference 6 parameters

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

Extracts files from a specified ZIP archive file. The Expand-Archive cmdlet extracts files from a specified zipped archive file to a specified destination folder. An archive file allows multiple files to be packaged, and optionally compressed, into a single zipped file for easier distribution and storage. This cmdlet only works with zip archives, which typically have the file extension .zip. The Expand-Archive cmdlet uses the System.IO.Compression.ZipArchive API to compress files. The API limits the maximum file size to 2GB. The .NET API works with files that conform to the official ZIP file format specification by PKWARE Inc. For more information, see System.IO.Compression.ZipArchive.

Expand-Archive [-Path] <String> [[-DestinationPath] <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Expand-Archive -LiteralPath <String> [[-DestinationPath] <String>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Extract the contents of an archive

Expand-Archive -LiteralPath 'C:\Archives\Draft[v1].zip' -DestinationPath C:\ReferenceIdentify

Extract the contents of an archive in the current folder

Expand-Archive -Path Draftv2.zip -DestinationPath C:\ReferenceIdentify

Its page in the reference: Expand-Archive.

Parameters

6 in the PowerShell reference
-DestinationPathBy default, Expand-Archive creates a folder in the current location that's the same name as the ZIP file. The parameter allows you to specify the path to a different folder. The target folder is created if it doesn't exist.
-ForceUse this parameter to overwrite existing files. By default, Expand-Archive doesn't overwrite.
-LiteralPathSpecifies the path to an archive file. Unlike the Path parameter, the value of LiteralPath is used exactly as it's typed. Wildcard characters aren't supported. If the path includes escape characters, enclose each escape character in single quotation marks, to instruct PowerShell not to interpret any characters as escape sequences.
-PathSpecifies the path to the archive file.
-ConfirmPrompts you for confirmation before running the cmdlet.
-WhatIfShows what would happen if the cmdlet runs. The cmdlet isn't run.