Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 1106

How to Set-RDSessionCollectionConfiguration from remote computer

$
0
0

Hi,

From remote computer I can without any problems obtain information about my RDS, but I want to be able, to setup Set-RDSessionCollectionConfiguration -LoadBalancing and I just cannot...

My script:

$LoadBalanceObjectsArray = New-Object System.Collections.Generic.List[Microsoft.RemoteDesktopServices.Management.RDSessionHostCollectionLoadBalancingInstance]
$LoadBalanceSessionHost1 = New-Object Microsoft.RemoteDesktopServices.Management.RDSessionHostCollectionLoadBalancingInstance( "Eskulap", 100, 999999, "xxx" )
$LoadBalanceObjectsArray.Add($LoadBalanceSessionHost1)
$LoadBalanceSessionHost2 = New-Object Microsoft.RemoteDesktopServices.Management.RDSessionHostCollectionLoadBalancingInstance( "Eskulap", 10, 999999, "xxxL" )
$LoadBalanceObjectsArray.Add($LoadBalanceSessionHost2)
Set-RDSessionCollectionConfiguration -ConnectionBroker "xxx" -CollectionName "xxx" -LoadBalancing $LoadBalanceObjectsArray}
This commands work without any problems locally on server, but I need help how to setup RelativeWeight remotely... I tried with invoke-command, pssession and no luck here...

Viewing all articles
Browse latest Browse all 1106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>