TeamViewerPS is a PowerShell module for interacting with the TeamViewer Web API and managing a locally installed TeamViewer client.
Install the latest released version from the PowerShell Gallery:
Install-Module -Name TeamViewerPSIf the module is already installed, update it with:
Update-Module -Name TeamViewerPSIf you need to load the module explicitly after install:
Import-Module TeamViewerPSTeamViewerPS supports:
- Windows PowerShell 5.1 on Windows
- PowerShell Core 6+ on Windows and Linux
- PowerShell 7+ on Windows and Linux
Create a TeamViewer API access token in the TeamViewer user profile, then connect:
$apiToken = Read-Host -Prompt 'TeamViewer API token' -AsSecureString
Connect-TeamViewerApi -ApiToken $apiTokenOnce connected, you can call Web API commands without specifying the token again:
Get-TeamViewerUser
Get-TeamViewerGroup
Get-TeamViewerPolicyDisconnect-TeamViewerApiGet-TeamViewerUserGet-TeamViewerId
Get-TeamViewerVersion
Get-TeamViewerInstallationDirectory
Get-TeamViewerLogFilePathTest-TeamViewerConnectivityIf your environment requires a proxy for web API requests, configure it with:
Set-TeamViewerPSProxy -ProxyUri 'http://proxy.example.com:3128'To remove the configured proxy:
Remove-TeamViewerPSProxyList available TeamViewerPS commands:
Get-Command -Module TeamViewerPSRead module help and specific command help:
Get-Help TeamViewerPS
Get-Help -Full Connect-TeamViewerApi
Get-Help -Full Get-TeamViewerUserFor a full list of supported commands and detailed reference documentation, see:
We welcome contributions to improve and expand TeamViewerPS.
- Fork the repository and create a feature branch.
- Open an issue first if you are unsure about the change.
- Add tests for new behavior when applicable.
- Keep code style consistent with existing PowerShell module conventions.
To run the repository tests locally:
Invoke-Pester -Path .If you want to lint the module before submitting a pull request:
Invoke-ScriptAnalyzer -Path . -Recurse -Settings .\Linters\PSScriptAnalyzer.psd1Please submit pull requests against the main branch.
Please see the file LICENSE.md.