Here is a sample PowerShell import script that imports a list of TeamViewer sessions into RDM using a simple CSV file format.
CSV format: Group, Name, Id, Password[code]cls;$csv = Import-Csv $args[0];Write-Host;Write-Host;foreach ($connection in $csv){ Write-Host ("Importing : " + $connection.Group + "\" + $connection.Name); Write-Host; $session = New-RDM-Session -Name $connection.Name -Kind "TeamViewer" $session.Group = $connection.Group; $session.TeamViewer.ID = $connection.Id; Set-RDM-Session $session -NoRefresh; if (![string]::IsNullOrEmpty($connection.Password)) { $pass = ConvertTo-SecureString $connection.Password -asplaintext -force; Set-RDM-Password -ID $session.ID -Password $pass -NoRefresh; }}Write-Host;Write-Host "DONE!"Write-Host;[/code]
fixed formating
edited by stefane on 4/29/2014
Stéfane Lavergne
TeamViewerCSVImport.ps1
TeamViewerImport.csv
Hi Stefane
How did you get the .csv with all the details out of the teamviewer list in the first place?
Best regards.
Patrick
Is there a better way to import TeamViewer connections?
Also wondering how you can export a list from TeamViewer. We are switching to TeamViewer and will have about 1,500 connections to import.
Hello,
We do not hold a Teamviewer subscription, have you tried through their support?
A quick search revealed that they do have an API (https://integrate.teamviewer.com/en/develop/api/documentation/), sadly I cannot see if all subscription levels allow usage of the API.
We occasionally create integration with other products ourselves, but it would need to be requested through our Feature Request forum. Please visit https://forum.devolutions.net/forum17-remote-desktop-manager--feature-request.aspx to create a new topic.
Best regards,
Maurice
Thanks for the script, unfortunately I get it not to run.
Can you explain the import again.
I launched PowerShell by RDM. (My version: 11.6.2.0) then run the script.
My CSV file looks like this: CUSTOMER \ TEST \ TEAMVIEWER, SERVERNAME, TV ID, PASSWORD TV - it is in the same directory.
The only message is "Done!"
ask for help
Hello,
What column titles do you use in the CSV file? Is it Group, Name, ID, Password?
In the script, because the $connection object refer to these properties (ex:$connection.group), every property name must be used as the title of each column.
Best regards,
Érica Poirier