Add-Tar Cmdlet
Parameters Output Objects Configuration Settings
The Add-Tar cmdlet allows for the appending of a file to an existing TAR archive.
Syntax
Add-Tar [parameters]
Remarks
To add one or more files to a pre-existing Tar archive, set the Input parameter to the list of files to add and the Output parameter to the the target archive.
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.
# add a file to an existing .tar archive
Add-Tar -Input
"newfile.txt"
-Output
"archive.tar"
Parameter List
The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.
LogFile | The location of a file to which debug information is written. |
Config | Specifies one or more configuration settings. |
FileCompressedName | Specifies the path and filename of the file in the archive. |
Input | The files to be added to the archive. |
LogFile | The location of a file to which debug information is written. |
Output | The archive file. |
Recurse | Whether or not to recurse into subdirectories. |
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.
ZipFile | Returned after appending file(s) to archive. |
Configuration Settings
The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.
UseBackgroundThread | Whether threads created by the cmdlet are background threads. |
UseInternalSecurityAPI | Tells the cmdlet whether or not to use the system security libraries or an internal implementation. |