Create a Zip file via PowerShell

2017-12-01T17:22:24+00:00 March 17th, 2014|PowerShell|

Here’s a quick command you can run to put a contents of a folder including subdirectories into a ZIP file

Folder to Convert to Zip – C:Dan

Destination to create ZIP – C:Dan.zip

PowerShell Command

Get-Childitem c:Dan -Recurse | Write-Zip -IncludeEmptyDirectories -OutputPath C:Dan.zip