-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path1-ConfigureSessionCollection.ps1
More file actions
36 lines (33 loc) · 1.49 KB
/
1-ConfigureSessionCollection.ps1
File metadata and controls
36 lines (33 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<#
.DESCRIPTION
This example shows how to ensure a session collection is configured.
#>
configuration Example
{
Import-DscResource -ModuleName 'RemoteDesktopServicesDsc'
node localhost {
RDSessionCollectionConfiguration '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
}
}
}