Online Detection - change all

avatar

Online Detection "Port Scan" is missing in Batch Edit, so i implemented this into my Powershell script

Example Script to change all Sessions:

$RDMSnapin = Get-PSSnapin -Name *Remote.Desktop* -Registered | sort version -Descending | select -First 1

Add-PSSnapin $RDMSnapin

$RDMSessions = Get-RDM-Session

foreach ($Session in $RDMSession) {

Set-RDM-Property -NoRefresh -ID $Session.id -Property "PingConnectionMethod" -Value 'PortScan'

}

All Comments (5)

avatar

Thank you Peter

We havent given this in a while, but here you go, you get the trophy ;)

Maurice

avatar

Excellent!

David Hervieux

avatar

Hello Maurice,

What an honor! :froot:

Thank you very much! :applause:

avatar

By the way, batch edit port scan is scheduled to be in the next minor release

David Hervieux

avatar

By the way, batch edit port scan is scheduled to be in the next minor release

I almost expected this ;) But the batch edit is not my primary focus, it's just convenient for specific server or when i need something quickly.

The Code fits perfectly into my script to create new sessions anyway:

I create my sessions by correlating my Server-CSV-List with the list of RDM Session and create the missing sessions with the needed dynamic parameters (and Server Metadata) and this setting needs to be there anyway.