zipped and password protected


hi,

need zip , password protect folder/file.
example source folder c:\backup , destination c:\zipped

zipped folder by
$source = c:\backup
$destination = c:\zipped
add-type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::createfromdirectory($source, $destination)

don't know next passworded file :/

the net classes not support passwords.


\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

ADCS Policy Web Service - Access was denied by the remote endpoint. 0x803d0005 (-2143485947)

File Share Witness is not a valid File share path