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