@@ -39,6 +39,10 @@ class JeaSessionConfiguration {
39
39
[DscProperty ()]
40
40
[string []] $ScriptsToProcess
41
41
42
+ # # The optional session type for the endpoint
43
+ [DscProperty ()]
44
+ [string ] $SessionType
45
+
42
46
# # The optional switch to enable mounting of a restricted user drive
43
47
[Dscproperty ()]
44
48
[bool ] $MountUserDrive
@@ -161,6 +165,11 @@ class JeaSessionConfiguration {
161
165
$configurationFileArguments [" TranscriptDirectory" ] = $this.TranscriptDirectory
162
166
}
163
167
168
+ # # SessionType
169
+ if ($this.SessionType ) {
170
+ $configurationFileArguments [" SessionType" ] = $this.SessionType
171
+ }
172
+
164
173
# # Startup scripts
165
174
if ($this.ScriptsToProcess ) {
166
175
$configurationFileArguments [" ScriptsToProcess" ] = $this.ScriptsToProcess
@@ -335,6 +344,11 @@ class JeaSessionConfiguration {
335
344
return $false
336
345
}
337
346
347
+ if ($currentInstance.SessionType -ne $this.SessionType ) {
348
+ Write-Verbose " SessionType not equal: $ ( $currentInstance.SessionType ) "
349
+ return $false
350
+ }
351
+
338
352
if (-not $this.ComplexObjectsEqual ($currentInstance.ScriptsToProcess , $this.ScriptsToProcess )) {
339
353
Write-Verbose " ScriptsToProcess not equal: $ ( ConvertTo-Json $currentInstance.ScriptsToProcess - Depth 100 ) "
340
354
return $false
@@ -592,6 +606,10 @@ class JeaSessionConfiguration {
592
606
$returnObject.TranscriptDirectory = $configFileArguments.TranscriptDirectory
593
607
}
594
608
609
+ if ($configFileArguments.SessionType ) {
610
+ $returnObject.SessionType = $configFileArguments.SessionType
611
+ }
612
+
595
613
if ($configFileArguments.ScriptsToProcess ) {
596
614
$returnObject.ScriptsToProcess = $configFileArguments.ScriptsToProcess
597
615
}
0 commit comments