Automatic login check

avatar
shimon
Disabled

Hii,
I have few Folder with several connections in my RDM application.

there is a best practice way to Test automatically the connection?
for example: run a vb or PowerShell script to test them all on by one

I would be happy to propose such a solution

thanks,

shimon

All Comments (1)

avatar

Hello,

Because this thread is related to PowerShell, I will move it into the PowerShell topic.

Yes it is possible to test the connectivity of every RDM entries with PowerShell.

Here is a sample you can use.

$sessions = Get-RDMSession | where {$_.ConnectionType -eq "RDPConfigured"}

foreach ($session in $sessions)
{
Write-Host $session.Name -NoNewline
If (New-Object System.Net.Sockets.TCPClient -ArgumentList $session.Host,3389) { Write-Host " - RDP is open"}
If ($? -eq $false) { Write-Host " - RDP connection doesn't work" }
}
Best regards,

Érica Poirier