Also, the resource should be able to disable the UserProfileDisk configuration if the configuration specifies so.
UserProfileDisks are a W2016+ feature only and that is probably why this resource does not support them yet. Also, on Set-RDSessionCollectionConfiguration, both enabling and disabling the User Profile Disk configuration are different parameter sets, so just adding these as parameters won't work if we don't fix the resource.
Proposed solution:
Add this functionality to xRDSessionCollectionConfiguration
Detect on which OS we are running (remove parameters for UserProfileDisk configuration if we are running on 2012)
When running on 2016+ test and apply the UserProfileDisk settings
The xRDSessionCollectionConfiguration resource should be able to configure UserProfileDisk related settings which are:
DiskPath EnableUserProfileDisk MaxUserProfileDiskSizeGB IncludeFolderPath ExcludeFolderPath IncludeFilePath ExcludeFilePath
Also, the resource should be able to disable the UserProfileDisk configuration if the configuration specifies so.
UserProfileDisks are a W2016+ feature only and that is probably why this resource does not support them yet. Also, on Set-RDSessionCollectionConfiguration, both enabling and disabling the User Profile Disk configuration are different parameter sets, so just adding these as parameters won't work if we don't fix the resource.
Proposed solution:
Version tested: 1.5.0.0