snippetbashTip
Expand-Archive — A cmdlet in PowerShell is used to extract files from a compressed archive. More information: <https:
Viewed 0 times
extractcommandfilesusedclipowershellexpand-archivecmdlet
windows
Problem
How to use the
Expand-Archive command: A cmdlet in PowerShell is used to extract files from a compressed archive. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.archive/expand-archive>.Solution
Expand-Archive — A cmdlet in PowerShell is used to extract files from a compressed archive. More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.archive/expand-archive>.Extract a ZIP file to a folder:
Expand-Archive -Path {{path\to\example.zip}} -DestinationPath {{path\to\extracted_files}}Overwrite existing files:
Expand-Archive -Path {{path\to\example.zip}} -DestinationPath {{path\to\extracted_files}} -ForcePreview without extracting:
Expand-Archive -Path {{path\to\example.zip}} -DestinationPath {{path\to\extracted_files}} -WhatIfCode Snippets
Extract a ZIP file to a folder
Expand-Archive -Path {{path\to\example.zip}} -DestinationPath {{path\to\extracted_files}}Overwrite existing files
Expand-Archive -Path {{path\to\example.zip}} -DestinationPath {{path\to\extracted_files}} -ForcePreview without extracting
Expand-Archive -Path {{path\to\example.zip}} -DestinationPath {{path\to\extracted_files}} -WhatIfContext
tldr-pages: windows/Expand-Archive
Revisions (0)
No revisions yet.