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
$csv = Import-Csv $args;
foreach ($connection in $csv)
Write-Host ("Importing : " + $connection.Group + "\" + $connection.Name);
$session = New-RDM-Session -Name $connection.Name -Kind "TeamViewer"
$session.Group = $connection.Group;
$session.TeamViewer.ID = $connection.Id;
Set-RDM-Session $session -NoRefresh;
$pass = ConvertTo-SecureString $connection.Password -asplaintext -force;
Set-RDM-Password -ID $session.ID -Password $pass -NoRefresh;
edited by stefane on 4/29/2014
How did you get the .csv with all the details out of the teamviewer list in the first place?
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.
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.
Customers that use Devolutions Server are provided free remote sessions for performing upgrades. Please send a request to the Devolutions Service Desk to get the process started.
Thanks for the script, unfortunately I get it not to run.
Can you explain the import again.
I launched PowerShell by RDM. (My version: 184.108.40.206) 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
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.