ExcludedFiles Parameter (Expand-Tar Cmdlet)

A list of files to exclude.


Expand-Tar -ExcludedFiles string[]


This parameter may be set to one or more filenames or directory names. Files may be specified with or without a path, and with or without wildcards. If a path is specified, files in the indicated directory will be excluded If no path is specified but wildcards are, matching files in all directories will be excluded.

Directories should end with a slash ("/" or "\", as appropriate.) If a directory is specified, all files and subdirectories in the specified directory will be excluded.

The ExcludedFiles parameter is not supported when extracting GZIP archives.

Default Value


Copyright (c) 2022 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 8165]