Configure RDS Collections Using PowerShell
Create a new collection
Open a PowerShell prompt from the taskbar or Start menu, and then use the New-RDSessionCollection cmdlet to create a new collection.
In the example below, I’ve given the collection a name, a description, and specified the RDS Session Host and Connection Broker servers using their fully qualified domain names (FQDNs)
Example:
New-RDSessionCollection –CollectionName MultiTS –SessionHost TS1.net.lan –CollectionDescription ‘TS’ –ConnectionBroker TS1.net.lan
To verify the creation of the new collection,
use the Get-RDSessionCollection cmdlet, replacing TS1.net.lan with the name of your RDS Connection Broker. Get-RDSessionCollection –ConnectionBroker TS1.net.lan
To remove a collection from an RDS Connection Broker,
use the Remove-RDSessionCollection cmdlet as shown here, again replacing the values for -CollectionName and -ConnectionBroker as needed for your environment.
Remove-RDRemoteApp -Alias TS02 -CollectionName PetriRemoteApps -ConnectionBroker TS1.net.lan
Dodaj komentarz