Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Test-AlternateDataStream

Test-AlternateDataStream

pscx.dll

Synopsis

PSCX Cmdlet: Tests for the existence of the specified alternate data stream from an NTFS file.

Syntax

Test-AlternateDataStream [-Path] [-Name] [<CommonParameters>]

Test-AlternateDataStream [-LiteralPath] [-Name] [<CommonParameters>]

Detailed Description

Tests for the existence of the specified alternate data stream from an NTFS file.

Parameters

-LiteralPath <String[]>

Specifies a path to the item. The value of -LiteralPath is used exactly as it is typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose it in single quotation marks. Single quotation marks tell Windows PowerShell not to interpret any characters as escape sequences.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Path <String[]>

Specifies the path to the file to process. Wildcard syntax is allowed.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

true

-Name <String>

Specifies the name of the alternate data stream e.g. Zone.Identifier

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

Shows which ZIP files have an alternate data stream named Zone.Identifier.

C:\PS> Get-ChildItem *.zip | Test-AlternateDataStream -Name Zone.Identifier -Verbose