< Back
Compress-7ZipArchive
Post
NAME Compress-7ZipArchive
SYNOPSIS
???????????????????????????????????????????????????????????????????????????????????
SYNTAX
Compress-7ZipArchive [-Path] <String[]> [-Destination] <String> [-Password <SecureString>] [-Type <String>]
[<CommonParameters>]
Compress-7ZipArchive -LiteralPath <String[]> [-Destination] <String> [-Password <SecureString>] [-Type <String>]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-Path <String[]>
????????????????????????????????????????????????????????????????????????????????????
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-LiteralPath <String[]>
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Destination <String>
????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <SecureString>
?????????????????????????????????????????????????????????????????????????
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????'7z', 'zip', 'bzip2', 'gzip', 'tar', 'wim', 'xz'
??????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? 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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$pwd = Read-Host -AsSecureString
Get-Item * | Compress-7ZipArchive -Destination C:\\Archive.7z -Password $pwd
RELATED LINKS
SYNOPSIS
???????????????????????????????????????????????????????????????????????????????????
SYNTAX
Compress-7ZipArchive [-Path] <String[]> [-Destination] <String> [-Password <SecureString>] [-Type <String>]
[<CommonParameters>]
Compress-7ZipArchive -LiteralPath <String[]> [-Destination] <String> [-Password <SecureString>] [-Type <String>]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-Path <String[]>
????????????????????????????????????????????????????????????????????????????????????
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-LiteralPath <String[]>
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Destination <String>
????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Password <SecureString>
?????????????????????????????????????????????????????????????????????????
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Type <String>
????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????'7z', 'zip', 'bzip2', 'gzip', 'tar', 'wim', 'xz'
??????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? 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
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$pwd = Read-Host -AsSecureString
Get-Item * | Compress-7ZipArchive -Destination C:\\Archive.7z -Password $pwd
RELATED LINKS