-
Notifications
You must be signed in to change notification settings - Fork 46
xRDSessionCollectionConfiguration
dscbot edited this page Oct 15, 2025
·
2 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| CollectionName | Key | String | Specifies the name of a session collection. | |
| ActiveSessionLimitMin | Write | UInt32 | Specifies the maximum time, in minutes, an active session runs. After this period, the RD Session Host server ends the session. | |
| AuthenticateUsingNLA | Write | Boolean | Indicates whether to use Network Level Authentication (NLA). If this value is $True, Remote Desktop uses NLA to authenticate a user before the user sees a logon screen. | |
| AutomaticReconnectionEnabled | Write | Boolean | Indicates whether the Remote Desktop client attempts to reconnect after a connection interruption. | |
| BrokenConnectionAction | Write | String | Specifies an action for an RD Session Host server to take after a connection interruption. The acceptable values for this parameter are: None, Disconnect, LogOff. | |
| ClientDeviceRedirectionOptions | Write | String | Specifies a type of client device to be redirected to an RD Session Host server in this session collection. The acceptable values for this parameter are: None, AudioVideoPlayBack, AudioRecording, COMPort, PlugAndPlayDevice, SmartCard, Clipboard, LPTPort, Drive, TimeZone. You can use binary-or to combine two or more values of this enum to specify multiple client device types. | |
| ClientPrinterAsDefault | Write | Boolean | Indicates whether to use the client printer or server printer as the default printer. If this value is $True, use the client printer as default. If this value is $False, use the server as default. | |
| ClientPrinterRedirected | Write | Boolean | Indicates whether to use client printer redirection, which routes print jobs from the Remote Desktop session to a printer attached to the client computer. | |
| CollectionDescription | Write | String | Specifies a description of the session collection. | |
| ConnectionBroker | Write | String | Specifies the Remote Desktop Connection Broker (RD Connection Broker) server for a Remote Desktop deployment. | |
| CustomRdpProperty | Write | String | Specifies Remote Desktop Protocol (RDP) settings to include in the .rdp files for all Windows Server 2012 RemoteApp programs and remote desktops published in this collection. | |
| DisconnectedSessionLimitMin | Write | UInt32 | Specifies a length of time, in minutes. After client disconnection from a session for this period, the RD Session Host ends the session. | |
| DiskPath | Write | String | Specifies the target to store the User Profile Disks | |
| EnableUserProfileDisk | Write | Boolean | Specifies if this collection uses UserProfileDisks | |
| EncryptionLevel | Write | String | Specifies the level of data encryption used for a Remote Desktop session. The acceptable values for this parameter are: Low, ClientCompatible, High, FipsCompliant. The default value is ClientCompatible. | |
| ExcludeFilePath | Write | StringArray[] | Specifies a list of strings for files to exclude from the user profile disk | |
| ExcludeFolderPath | Write | StringArray[] | Specifies a list of strings for folders to exclude from the user profile disk | |
| IdleSessionLimitMin | Write | UInt32 | Specifies the length of time, in minutes, to wait before an RD Session Host logs off or disconnects an idle session. The BrokenConnectionAction parameter determines whether to log off or disconnect. | |
| IncludeFilePath | Write | StringArray[] | Specifies a list of strings for files to include in the user profile disk | |
| IncludeFolderPath | Write | StringArray[] | Specifies a list of strings for folders to include in the user profile disk | |
| MaxRedirectedMonitors | Write | UInt32 | Specifies the maximum number of client monitors that an RD Session Host server can redirect to a remote session. The highest value for this parameter is 16. | |
| MaxUserProfileDiskSizeGB | Write | UInt32 | Specifies the maximum size in GB for a User Profile Disk | |
| RDEasyPrintDriverEnabled | Write | Boolean | Specifies whether to enable the Remote Desktop Easy Print driver. | |
| SecurityLayer | Write | String | Specifies which security protocol to use. The acceptable values for this parameter are: RDP, Negotiate, SSL. The default value is Negotiate. | |
| TemporaryFoldersDeletedOnExit | Write | Boolean | Specifies whether to delete temporary folders from the RD Session Host server for a disconnected session. | |
| UserGroup | Write | StringArray[] | Specifies a domain group authorized to connect to the RD Session Host servers in a session collection. |
This resource is used to configure the Remote Desktop Collection Configuration.
This example shows how to ensure a session collection is configured.
configuration Example
{
Import-DscResource -ModuleName 'xRemoteDesktopSessionHost'
node localhost {
xRDSessionCollectionConfiguration 'ExampleApplications' {
CollectionName = 'ExampleApplications'
CollectionDescription = 'A collection to deploy example applications'
ConnectionBroker = 'connectionbroker.server.fqdn'
UserGroup = 'DOMAIN\AllowedUsersGroup'
ActiveSessionLimitMin = 0
BrokenConnectionAction = 'Disconnect'
AutomaticReconnectionEnabled = $True
DisconnectedSessionLimitMin = 30
IdleSessionLimitMin = 1440 # One day
TemporaryFoldersDeletedOnExit = $True
RDEasyPrintDriverEnabled = 0
MaxRedirectedMonitors = 16
ClientPrinterRedirected = 0
ClientDeviceRedirectionOptions = 'AudioVideoPlayBack, AudioRecording, Clipboard'
ClientPrinterAsDefault = 0
AuthenticateUsingNLA = $True
EncryptionLevel = 'High'
SecurityLayer = 'SSL'
EnableUserProfileDisk = $True
DiskPath = '\\file.server.fqdn\RDSProfileShare'
MaxUserProfileDiskSizeGB = 5
}
}
}