$obj = gwmi -namespace “Root/CIMV2/TerminalServices” Win32_TerminalServiceSetting $obj.ChangeMode(2) $obj.SetSpecifiedLicenseServerList(“SERVER”) $obj.GetSpecifiedLicenseServerList()