Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 1.47 KB

Invoke-TeamViewerPing.md

File metadata and controls

78 lines (50 loc) · 1.47 KB

external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Invoke-TeamViewerPing.md schema: 2.0.0

Invoke-TeamViewerPing

SYNOPSIS

Test the given TeamViewer API access token to be valid.

SYNTAX

Invoke-TeamViewerPing [-APIToken] <SecureString> [<CommonParameters>]

DESCRIPTION

This command tests the availability of the TeamViewer Web API and the validity of the given API access token.

EXAMPLES

Example 1

Invoke-TeamViewerPing

Example 2

$isValid = Invoke-TeamViewerPing

Stores whether the API access token is valid in a variable.

Example 3

if (Invoke-TeamViewerPing) { 'Token is valid' }

Runs a follow-up action only when the API access token is valid.

PARAMETERS

-APIToken

The TeamViewer API access token.

Type: SecureString
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
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

None

OUTPUTS

NOTES

RELATED LINKS