external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Get-TeamViewerService.md schema: 2.0.0
Return the TeamViewer service object.
Get-TeamViewerService [<CommonParameters>]Returns the TeamViewer service object.
PS C:\> Get-TeamViewerService(Get-TeamViewerService).StatusReturns the current status of the TeamViewer service.
if ((Get-TeamViewerService).Status -eq 'Running') { Write-Output 'TeamViewer service is running' }Checks whether the TeamViewer service is currently running.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.