Hello,
We are periodically dumping data from the vCenter VM list and create RDM entries via csv file. I am looking to create script. What i would like script to do it, check to determine whether the session exists, if it exits override it with the field it applies. if it does not exits create new session.
is there similar script sample that i can use? or give me a few idea to start with.
Thank you.
Hi
I will assign this to Olivier. He should get back to you soon.
David Hervieux
Hi Orhan,
There are some samples that you can find in the "Powershell repository" section: https://forum.devolutions.net/forum42-remote-desktop-manager--powershell-repository.aspx
Here's some that can help you: https://forum.devolutions.net/topic5249-import-computers-from-ad.aspx
https://forum.devolutions.net/topic13958-powershell-search-for-existing-session.aspx
Here's another one: https://forum.devolutions.net/topic16168-update-teamviewer-sessions-based-on-database-table.aspx
In this post, look at the section "PowerShell to update RDM" the interesting part for you begins at #Get existing sessions "Teamviwer"
Of course, we will need to modify the wheres part to fit your needs, loop through the sessions and modify the if because I don't think you will have the id so you will need compare with the host and session name.
You can also look at https://forum.devolutions.net/topic5268-mass-import-from-csv-file.aspx
You can find the help for the PowerShell RDM cmdLet at http://help.remotedesktopmanager.com/index.html?powershell_cmdlets.htm
If you need more help don't hesitate to ask us.
Best regards,
Olivier Désalliers