Advertisement
goezler

Add RDS License Servers

Jan 21st, 2021
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
  2. $obj.ChangeMode(4)       >>>>   Note. Enter 4 if the server must use Per User licensing type, and 2, if it is Per Device.
  3. $obj.SetSpecifiedLicenseServerList("EXAMPLE-SERVER_NAME.domain.local")
  4. And check the current settings:
  5. $obj.GetSpecifiedLicenseServerList()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement