numpdog
numpdog

Reputation: 71

Is there a way to password encrypt a compressed archive in powershell without using 3rd party tools?

After using a powershell command to compress a folder:

powershell -Command "& {Compress-Archive -Update -Path 'C:\myfolder' -CompressionLevel Optimal -DestinationPath C:\myfolder.zip}"

is there another powershell command to password protect/encrypt the resulting myfolder.zip archived file?

Upvotes: 7

Views: 8115

Answers (1)

Brie
Brie

Reputation: 2359

As of July 2020, Compress-Archive and the command-line tool tar do not provide encryption options. A 3rd-party app is required.

Upvotes: 5

Related Questions