PowerShell command to create zip file
- Sean O'Shea
- Feb 24, 2020
- 1 min read
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
