Search and update server names to use a FQDN

Search and update server names to use a FQDN

avatar
debell6701
Disabled

I am hoping someone can help me out with this as I don't get a chance to work on powershell scripting with RDM very much.
Recently my network has changed to require a fully qualified domain name to connect to servers in my RDP sessions. I have manually added it to a few of my connections but I would like to run a script to find any that do not have it added and update the server name.
Example: Computer field is Server1 and what I want to update to is Server1.us.abc.com

All Comments (3)

avatar

Hello,

please have a look over this thread. For how to get the available properties please visit this https://help.remotedesktopmanager.com/pstipsandtricks.html help page.

Regards,
Min

avatar

Ok for the benefit of others trying to do something similar I did use the edit-edit (special actions) to run a powershell script on my connections. Below is what I did as I had manually added my FQDN to some of my connections already.

$domain = ".us.chs.net"
if ($connection.Host -notlike '*.us.chs.net*') {
$connection.Host = $connection.Host + $domain
$RDM.Save()
}

avatar

Nice! 👍
Thanks for your feedback!

Regards,
Min