Create a Zip file via 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

 

About the author