< Back

Compress-7Zip

Fri Jan 10, 2020 5:32 pm

NAME Compress-7Zip



SYNTAX

Compress-7Zip [-ArchiveFileName] <string> [-Path] <string> [[-Filter] <string>] [-Format {Auto | SevenZip | Zip |

GZip | BZip2 | Tar | XZ}] [-CompressionLevel {None | Fast | Low | Normal | High | Ultra}] [-CompressionMethod

{Copy | Deflate | Deflate64 | BZip2 | Lzma | Lzma2 | Ppmd | Default}] [-CustomInitialization <scriptblock>]

[-EncryptFilenames] [-FlattenDirectoryStructure] [-VolumeSize <int>] [-SkipEmptyDirectories] [-DisableRecursion]

[-Append] [<CommonParameters>]



Compress-7Zip [-ArchiveFileName] <string> [-Path] <string> [[-Filter] <string>] [-Format {Auto | SevenZip | Zip |

GZip | BZip2 | Tar | XZ}] [-CompressionLevel {None | Fast | Low | Normal | High | Ultra}] [-CompressionMethod

{Copy | Deflate | Deflate64 | BZip2 | Lzma | Lzma2 | Ppmd | Default}] [-Password <string>] [-CustomInitialization

<scriptblock>] [-EncryptFilenames] [-FlattenDirectoryStructure] [-VolumeSize <int>] [-SkipEmptyDirectories]

[-DisableRecursion] [-Append] [<CommonParameters>]



Compress-7Zip [-ArchiveFileName] <string> [-Path] <string> [[-Filter] <string>] [-Format {Auto | SevenZip | Zip |

GZip | BZip2 | Tar | XZ}] [-CompressionLevel {None | Fast | Low | Normal | High | Ultra}] [-CompressionMethod

{Copy | Deflate | Deflate64 | BZip2 | Lzma | Lzma2 | Ppmd | Default}] [-SecurePassword <securestring>]

[-CustomInitialization <scriptblock>] [-EncryptFilenames] [-FlattenDirectoryStructure] [-VolumeSize <int>]

[-SkipEmptyDirectories] [-DisableRecursion] [-Append] [<CommonParameters>]





PARAMETERS

-Append

Append files to existing archive



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-ArchiveFileName <string>

The full file name of the archive



Required? true

Position? 0

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-CompressionLevel <CompressionLevel>



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-CompressionMethod <CompressionMethod>



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-CustomInitialization <scriptblock>

Allows setting additional parameters on SevenZipCompressor



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-DisableRecursion

Disables recursive files search



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-EncryptFilenames

Enables encrypting filenames when using the 7z format



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Filter <string>

The filter to be applied if Path points to a directory



Required? false

Position? 2

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-FlattenDirectoryStructure

Disables preservation of directory structure



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Format <OutputFormat>



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Password <string>



Required? false

Position? Named

Accept pipeline input? false

Parameter set name PlainPassword

Aliases None

Dynamic? false



-Path <string>

The source folder or file



Required? true

Position? 1

Accept pipeline input? true (ByValue)

Parameter set name (All)

Aliases None

Dynamic? false



-SecurePassword <securestring>



Required? false

Position? Named

Accept pipeline input? false

Parameter set name SecurePassword

Aliases None

Dynamic? false



-SkipEmptyDirectories

Disables preservation of empty directories



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-VolumeSize <int>

Specifies the volume sizes in bytes, 0 for no volumes



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

System.String





OUTPUTS

System.Object



ALIASES

None





REMARKS

None