Skip to content

Instantly share code, notes, and snippets.

@danieljoos
Last active May 3, 2021 13:00
Show Gist options
  • Save danieljoos/bb8189205d198a8283fc92a82573916b to your computer and use it in GitHub Desktop.
Save danieljoos/bb8189205d198a8283fc92a82573916b to your computer and use it in GitHub Desktop.
Install-Module TeamViewerPS
Connect-TeamViewerApi
# ----
$domain = Get-TeamViewerSsoDomain | Where-Object { $_.Name -eq 'example.com' }
# ----
Import-Csv ./example.csv | `
Select-Object -ExpandProperty Email | `
Add-TeamViewerSsoExclusion -DomainId $domain
# ----
Get-TeamViewerSsoExclusion -Domain $domain | Measure-Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment