Q: How do I set the Remote Desktop Licensing mode for my Windows Server 2012 RDS deployment by using Windows PowerShell?

A. To set the licensing server, use the following commands (if you wish to use per device instead of per user, change PerUser to PerDevice):

PS C:\> Import-Module RemoteDesktopServices

PS C:\> Set-RDLicenseConfiguration -LicenseServer -Mode PerUser -ConnectionBroker