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...