Expand-Archive

noun

say it: “ik-SPAND AR-kyve” /ɪkˈspænd ˈɑrkaɪv/

A PowerShell command that unpacks a zip file into a folder, making the folder if it isn't there.

What does Expand-Archive do?

Expand-Archive unpacks a zip file into a folder. -DestinationPath names the folder, and it's made if it isn't there. If files of the same names are already in it, it stops rather than replace them, unless you add -Force.

Expand-Archive -Path trip-photos.zip -DestinationPath from-the-zip

In a sentence

  • “Sam unpacked the zip into from-the-zip with Expand-Archive.”
  • “Files of the same names were already there, so Expand-Archive needed -Force.”

Level: Novice · More PowerShell terms at this level

Updated