Details of the scenario you tried and the problem that is occurring
For my purposes, I need to set a few settings in gpedit.msc Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing:
a) Use the specified Remote Desktop license servers parameter switch to Enabled.
b) License servers to use , set localhostname or its own IP-address.
a) Set the Remote licensing mode parameter switch to Enabled.
b) Specify the licensing mode for the RD Session Host server field set to Per Device.
I planed to use xRDLicenseConfiguration to set these settings but it requires installed RDS-Connection-Broker component and set ConnectionBroker.
But all this result I can get manually only with installed RDS-Licensing, RDS-RD-Server and using gpedit.msc .
Tell me please, how I can get same result using xRDLicenseConfiguration only?
Verbose logs showing the problem
At line:28 char:9
+ xRDLicenseConfiguration SetRDPLicensingSettings
+ ~~~~~~~~~~~~~~~~~~~~~~~
Resource 'xRDLicenseConfiguration' requires that a value of type 'String' be provided for property 'ConnectionBroker'.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingValueForMandatoryProperty
Suggested solution to the issue
Make ConnectionBroker as optional parametr.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Details of the scenario you tried and the problem that is occurring
For my purposes, I need to set a few settings in gpedit.msc Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing:
a) Use the specified Remote Desktop license servers parameter switch to Enabled. b) License servers to use , set localhostname or its own IP-address.
a) Set the Remote licensing mode parameter switch to Enabled. b) Specify the licensing mode for the RD Session Host server field set to Per Device.
I planed to use xRDLicenseConfiguration to set these settings but it requires installed RDS-Connection-Broker component and set ConnectionBroker.
But all this result I can get manually only with installed RDS-Licensing, RDS-RD-Server and using gpedit.msc .
Tell me please, how I can get same result using xRDLicenseConfiguration only?
Verbose logs showing the problem
Suggested solution to the issue
Make ConnectionBroker as optional parametr.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used
current xRemoteDesktopSessionHost 1.9.0.0