external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Test-TeamViewerInstallation.md schema: 2.0.0
Check if TeamViewer is installed on this machine.
Test-TeamViewerInstallation [<CommonParameters>]Test if TeamViewer is installed on this machine.
The command simply returns True if installed, or False otherwise.
Test-TeamViewerInstallation$isInstalled = Test-TeamViewerInstallationStores the result of the installation check in the $isInstalled variable for later use.
if (Test-TeamViewerInstallation) { Restart-TeamViewerService }Restarts the TeamViewer service only when TeamViewer is installed on the machine.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.