Manage Zip archives with PowerShell

I know there are lots of examples and function implementations out there (for instance, the one from jaykul), nonetheless I’d like to add my 2 cents. Even 5c, since my version is more powerful It allows you to set compression level, append/replace files to/in existing archives and extract only necessary files from archive.
For instance, to extract vmware.xml file from the archive’s root and all the files from the vib folder stored in root also (yep, we’re expanding, creating subfolder in the current directory (replacing if already exists), you need to run the following command:
Extract-ZipFile -ZipFilePath -FilesToExtract vmware.xml,vibs/ -CreateSubfolder -Force
The slash character indicates that you’d like to expand the folder, not the file.


  • Erik Naslund

    Not sure how you have not had any feedback on this yet, but let me be the first to say… THANK YOU! This is exactly the kind of functionality I was looking for. Highly flexible, extremely useful and very well thought out.