Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Test-HgsTraceTarget

Brian Lich|Last Updated: 3/30/2017

SYNOPSIS

Verifies that a remote Windows PowerShell® session can be opened to the provided target.

SYNTAX

Test-HgsTraceTarget -Target <InputTarget> [<CommonParameters>]

DESCRIPTION

The Test-HgsTraceTarget cmdlet verifies that a remote Windows PowerShell® session can be opened to the specified target and that a compatible version of the diagnostic module is available.

EXAMPLES

PARAMETERS

-Target

Specifies the target object to be tested.

Type: InputTarget
Parameter Sets: (All)
Aliases: InputObject

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Microsoft.Windows.HostGuardianService.Diagnostics.Payload.InputTarget

You can pipe a target object created by the New-HgsTraceTarget cmdlet.

OUTPUTS

System.Boolean

This cmdlet returns true if a connection can be opened and the requisite conditions are met by that target; false otherwise. The cmdlet reports a detailed error if the test fails.

NOTES

New-HgsTraceTarget

© 2017 Microsoft