Test-DefenderToken
From PowerGUI Wiki
Tests a Defender token's response.
Contents |
Syntax
Test-DefenderToken [-TokenCommonName] <string> [-Response] <string> [[-Challenge] <string>] [-TokenSearchBase <string>] [<CommonParameters>]
Detailed Description
Tests a Defender token's response.
Parameters
| Name | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|
| TokenCommonName | Common name of the token to test. | true | false | |
| Response | The token response. | true | false | |
| Challenge | The token challenge, not required for synchronous tokens. | false | false | |
| TokenSearchBase | Optional parameter to specify base container from which to search for tokens. | false | false |
Input Type
None
Return Values
Quest.Defender.PowerShell.Formats.DefenderResult This class provides the following public properties:
System.Boolean Success, whether the test was successful System.String ErrorMessage, message associated with the test
Examples
EXAMPLE 1
C:\PS> Test-DefenderToken GO0061454569921 980536
Description
Test the current token response, 980536, for a synchronous token with common name GO0061454569921.
EXAMPLE 2
C:\PS> Test-DefenderToken PDWIN3053600081 363954 457939
Description
Test the current token response for a challenge / Response token with common name PDWIN3053600081, where 457939 is the challenge and 363954 the response.
EXAMPLE 3
C:\PS> Test-DefenderToken GO0061454569921 574102 -TokenSearchBase "OU=Tokens,OU=Defender,DC=MyDomain,DC=Local"
Description
Test the current token response, 574102, for a synchronous token with common name GO0061454569921 using a specified Token Search Base.
