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
Test the given TeamViewer API access token to be valid.
Invoke-TeamViewerPing [-APIToken] <SecureString> [<CommonParameters>]This command tests the availability of the TeamViewer Web API and the validity of the given API access token.
Invoke-TeamViewerPing$isValid = Invoke-TeamViewerPingStores whether the API access token is valid in a variable.
if (Invoke-TeamViewerPing) { 'Token is valid' }Runs a follow-up action only when the API access token is valid.
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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.