CmdID / PowerShell / Cmdlets / Get
Get-RDSessionHost
Gets a list of RD Session Host servers in a session collection. Windows Server PowerShell reference
From the Windows Server PowerShell reference 2 parameters Its page in the reference
Parameters
-CollectionNameSpecifies the name of the RD Session Host collection.-ConnectionBrokerSpecifies the Remote Desktop Connection Broker (RD Connection Broker) server for this Remote Desktop deployment.