NetCmdlets 2016
NetCmdlets 2016
Questions / Feedback?

Expand-Gzip Cmdlet

Parameters   Output Objects   Configuration Settings  

The Expand-Gzip cmdlet implements a decompressor for GZIP archives.

Syntax

Expand-Gzip [parameters]

Remarks

The cmdlet implements a gzip decompressor compliant to RFC 1952 and compatible with the UNIX gzip and gunzip utilities.

To scan an archive, set the Input parameter to the archive to examine and do not set the Output parameter. A ZipFileInfo object will be returned.

If the Output parameter is set, the cmdlet will attempt to extract the archive to the specified location. A ZipFileInfo object will be returned indicating the success of the operation.

The cmdlets support pipeline input for some of their parameters. Prebuilding an object and piping it to the cmdlet is very useful, but should be used with caution to prevent security conflicts. Steps have been taken to decrease the risk of a possibly accidental pipe to the cmdlet, for instance, the Credential parameter cannot be piped to the cmdlet and must be specified manually.


# scan an archive
Expand-Gzip -Input "simple.gz" 
# extract file
Expand-Gzip -Input "C:\simple.gz" -Output "C:\temp"

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

LogFileThe location of a file to which debug information is written.
CompressionMethodThe method with which the archive was compressed.
ConfigSpecifies one or more configuration settings.
InputThe archive file from which to read.
LogFileThe location of a file to which debug information is written.
OutputThe directory where the files will be decompressed.
OverwriteWhether or not to overwrite files when writing to them.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

ZipFileInfoInformation about the entries in the archive.

Configuration Settings


The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.

UseBackgroundThreadWhether threads created by the cmdlet are background threads.
UseInternalSecurityAPITells the cmdlet whether or not to use the system security libraries or an internal implementation.

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
NetCmdlets 2016 - Version 16.0 [Build 6801]