PowerShell command to create zip file
top of page

PowerShell command to create zip file


You can use a PowerShell script to create a zip file. Use the command, 'Compress-Archive' followed by the path to the directory to be zipped, followed by the location the zip file should be saved to.

Compress-Archive -Path F:\MyData -DestinationPath F:\foofolder


bottom of page