#pragma autorecover #pragma classflags(64) #pragma namespace("\\\\.\\ROOT\\cimv2") instance of __namespace{ name="ms_804";}; #pragma namespace("\\\\.\\ROOT\\cimv2\\ms_804") [Description("Win32_TerminalService 类提供终端服务负载平衡指示器。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TerminalService : Win32_Service { [Description("此服务器上的会话总数。这包括已连接和已断开连接的会话。") : Amended ToSubclass] uint32 TotalSessions; [Description("此服务器上已断开连接的会话数。这些会话可能仍在主动占用服务器资源,但它们当前未联网。") : Amended ToSubclass] uint32 DisconnectedSessions; }; #pragma namespace("\\\\.\\Root\\cimv2\\TerminalServices") instance of __namespace{ name="ms_804";}; #pragma namespace("\\\\.\\Root\\cimv2\\TerminalServices\\ms_804") #pragma deleteclass("Win32_TerminalServiceSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSSessionDirectoryConfig",NOFAIL) #pragma deleteclass("Win32_TerminalService",NOFAIL) #pragma deleteclass("Win32_TerminalServiceStatistics",NOFAIL) #pragma deleteclass("Win32_Terminal",NOFAIL) #pragma deleteclass("Win32_TSGeneralSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSLogonSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSSessionSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSEnvironmentSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSRemoteControlSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSClientSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSNetworkAdapterSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSNetworkAdapterListSettings",NOFAIL) #pragma deleteclass("Win32_TSNetworkAdapterListSetting",NOFAIL) #pragma deleteclass("Win32_TSAccount",NOFAIL) #pragma deleteclass("Win32_TerminalServiceSettings",NOFAIL) #pragma deleteclass("Win32_TSSessionDirectory",NOFAIL) #pragma deleteclass("Win32_TSSessionDirectorySetting",NOFAIL) #pragma deleteclass("Win32_TerminalServiceSetting",NOFAIL) #pragma deleteclass("Win32_TerminalServiceStatistics",NOFAIL) #pragma deleteclass("Win32_TerminalSettings",NOFAIL) #pragma deleteclass("Win32_TSGeneralSettings",NOFAIL) #pragma deleteclass("Win32_TSLogonSettings",NOFAIL) #pragma deleteclass("Win32_TSSessionSettings",NOFAIL) #pragma deleteclass("Win32_TSEnvironmentSettings",NOFAIL) #pragma deleteclass("Win32_TSPermissionsSettings",NOFAIL) #pragma deleteclass("Win32_TSPermissionsSetting",NOFAIL) #pragma deleteclass("Win32_TSClientSettings",NOFAIL) #pragma deleteclass("Win32_TSNetworkAdapterSettings",NOFAIL) #pragma deleteclass("Win32_TSNetworkAdapterSetting",NOFAIL) #pragma deleteclass("Win32_TSPermissionsSettingsConfig",NOFAIL) #pragma deleteclass("Win32_TSRemoteControlSettings",NOFAIL) #pragma deleteclass("Win32_TSEnvironmentSetting",NOFAIL) #pragma deleteclass("Win32_TSVirtualIPConfig",NOFAIL) #pragma deleteclass("Win32_TSVirtualIP",NOFAIL) #pragma deleteclass("Win32_TSVirtualIPSetting",NOFAIL) [AMENDMENT, LOCALE(0x0804) : ToInstance] class CIM_ManagedSystemElement { }; [AMENDMENT, LOCALE(0x0804) : ToInstance] class CIM_LogicalElement : CIM_ManagedSystemElement { }; [AMENDMENT, LOCALE(0x0804) : ToInstance] class CIM_Setting : CIM_ManagedSystemElement { }; [AMENDMENT, LOCALE(0x0804) : ToInstance] class CIM_ElementSetting : CIM_ManagedSystemElement { }; [Description("Win32_TSDiscoveredLicenseServer 类提供已发现的许可证服务器的详细信息") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSDiscoveredLicenseServer { [key,Description("已发现的终端服务器许可证服务器的名称。") : Amended ToSubclass] string LicenseServer; [Description("发现模式的限定符") : Amended ToSubclass,Values{"GroupPolicyConfigured", "RegistryConfigured", "WorkgroupDiscovery", "DomainDiscovery", "EnterpriseDiscovery"} : Amended ToSubclass] uint32 HowDiscovered; [Description("LS 可用性的限定符") : Amended ToSubclass,Values{"不可用", "可用"} : Amended ToSubclass] uint32 IsLSAvailable; [Description("具有 LS 管理员访问权限的 TS 的限定符") : Amended ToSubclass,Values{"否", "是", "不知道"} : Amended ToSubclass] uint32 IsAdminOnLS; [Description("向 TS 颁发 CAL 的 TS 的限定符") : Amended ToSubclass,Values{"不允许", "已允许", "不知道"} : Amended ToSubclass] uint32 IssuingCALs; }; [Description("Win32_TerminalServiceSetting 类定义 TerminalServerSetting 的配置。这包括很多功能,如终端服务器模式、授权、Active Desktop、权限功能、删除临时文件夹和每个会话的临时文件夹。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TerminalServiceSetting : CIM_Setting { [key,Description("其属性受关注的终端服务器的名称。") : Amended ToSubclass] string ServerName; [Description("终端服务模式的限定符") : Amended ToSubclass,Values{"RemoteAdmin", "AppServer"} : Amended ToSubclass] uint32 TerminalServerMode; [Description("已保留;返回值 1。") : Amended ToSubclass] uint32 GetCapabilitiesID; [Description("授权模式的限定符") : Amended ToSubclass,Values{"个人终端服务器", "用于管理的远程桌面", "每设备", "每用户", "未配置"} : Amended ToSubclass] uint32 LicensingType; [Description("PolicySourceLicensingType 指示属性 LicensingType 是由服务器 (0) 还是组策略 (1) 配置") : Amended ToSubclass] uint32 PolicySourceLicensingType; [Description("属性值的每个位用作 BitValues 列表中值数组的索引。") : Amended ToSubclass] uint32 PossibleLicensingTypes; [Description("授权模式的名称") : Amended ToSubclass] string LicensingName; [Description("授权模式的简短描述") : Amended ToSubclass] string LicensingDescription; [Description("Active Desktop 位。") : Amended ToSubclass,Values{"TRUE", "FALSE"} : Amended ToSubclass] uint32 ActiveDesktop; [Description("“应用程序兼容性”位。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 UserPermission; [Description("“退出时删除临时文件夹”位。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 DeleteTempFolders; [Description("PolicySourceDeleteTempFolders 指示属性 DeleteTempFolders 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceDeleteTempFolders; [Description("“每个会话都使用临时文件夹”位。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 UseTempFolders; [Description("PolicySourceUseTempFolders 指示属性 UseTempFolders 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceUseTempFolders; [Description("描述是否允许新的 TS 连接。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 AllowTSConnections; [Description("PolicySourceAllowTSConnections 指示属性 AllowTSConnections 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceAllowTSConnections; [Description("指示每个用户是否只允许有一个会话。") : Amended ToSubclass,Values{"False", "True"} : Amended ToSubclass] uint32 SingleSession; [Description("PolicySourceSingleSession 指示属性 SingleSession 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceSingleSession; [Description("描述计算机的配置文件路径。") : Amended ToSubclass] string ProfilePath; [Description("PolicySourceProfilePath 指示属性 ProfilePath 是由组策略 (1) 还是服务器 (0) 配置。") : Amended ToSubclass] uint32 PolicySourceProfilePath; [Description("描述计算机的主目录。") : Amended ToSubclass] string HomeDirectory; [Description("PolicySourceHomeDirectory 指示属性 HomeDirectory 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceHomeDirectory; [Description("指示是启用还是禁用时区重定向。") : Amended ToSubclass] uint32 TimeZoneRedirection; [Description("PolicySourceTimeZoneRedirection 指示属性 TimeZoneRedirection 是由服务器 (0) 还是组策略 (1) 配置") : Amended ToSubclass] uint32 PolicySourceTimeZoneRedirection; [Description("指示是否允许新的会话。此设置不会影响 Windows 2000 后内部版本的现有会话") : Amended ToSubclass] string Logons; [Description("DirectConnectLicenseServers 属性已弃用。") : Amended ToSubclass] string DirectConnectLicenseServers; [Description("PolicySourceDirectConnectLicenseServers 属性已弃用。") : Amended ToSubclass] uint32 PolicySourceDirectConnectLicenseServers; [Description("PolicySourceConfiguredLicenseServers 指示 GetSpecifiedLSList 返回的许可证服务器是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceConfiguredLicenseServers; [Description("指示是否可以注销已登录到控制台的管理员。") : Amended ToSubclass] uint32 DisableForcibleLogoff; [Description("指示要回退到的打印机驱动程序。") : Amended ToSubclass,Values{"无回退驱动程序 = 0", "最佳推测 = 1", "最佳推测,如果找不到匹配项,则回退到 PCL = 2", "最佳推测,如果找不到匹配项,则回退到 PS = 3", "最佳推测,如果找不到匹配项,则显示 PCL 和 PS 驱动程序 = 4"} : Amended ToSubclass] uint32 FallbackPrintDriverType; [Description("PolicySourceFallbackPrintDriverType 指示属性 FallbackPrintDriverType 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceFallbackPrintDriverType; [Description("会话 Broker 排除模式: (0) 允许新用户登录,(1) 在重新启动前拒绝新用户登录,(2) 拒绝新用户登录。") : Amended ToSubclass] uint32 SessionBrokerDrainMode; [Description("用户会话数有限: (0) 功能已禁用,大于 0 的值表示每个连接所允许的会话数。") : Amended ToSubclass] uint32 LimitedUserSessions; [Description("启用动态公平共享调度: (0) 动态公平共享调度已禁用,(1) 动态公平共享调度已启用。") : Amended ToSubclass] uint32 EnableDFSS; [Description("PolicySourceEnableDFSS 指示属性 EnableDFSS 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceEnableDFSS; [Description("启用远程桌面 MSI: (0) 远程桌面 MSI 已禁用,(1) 远程桌面 MSI 已启用。") : Amended ToSubclass] uint32 EnableRemoteDesktopMSI; [Description("PolicySourceEnableRemoteDesktopMSI 指示属性 EnableRemoteDesktopMSI 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceEnableRemoteDesktopMSI; [Description("指定是否允许远程桌面连接客户端在其网络链接临时丢失的情况下自动重新连接到 RD 会话主机服务器上的会话: (0) 禁止客户端自动重新连接,(1) 每当运行远程桌面连接的客户端的网络连接丢失,所有客户端都将尝试自动重新连接。") : Amended ToSubclass] uint32 EnableAutomaticReconnection; [Description("PolicySourceEnableAutomaticReconnection 指示属性 EnableAutomaticReconnection 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceEnableAutomaticReconnection; [Description("指定是否首先使用远程桌面轻松打印打印机驱动程序来安装所有客户端打印机: (0) RD 会话主机服务器将尝试查找合适的打印机驱动程序来安装客户端打印机。如果 RD 会话主机服务器没有与客户端打印机匹配的打印机驱动程序,服务器将尝试使用远程桌面轻松打印打印机驱动程序来安装客户端打印机,(1) RD 会话主机服务器首先尝试使用远程桌面轻松打印打印机驱动程序来安装所有客户端打印机。如果出于任何原因无法使用远程桌面轻松打印打印机驱动程序,则将使用 RD 会话主机服务器上与客户端打印机匹配的打印机驱动程序。") : Amended ToSubclass] uint32 UseRDEasyPrintDriver; [Description("PolicySourceUseRDEasyPrintDriver 指示属性 UseRDEasyPrintDriver 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceUseRDEasyPrintDriver; [Description("控制远程桌面服务会话中智能卡设备的重定向: (0) 远程桌面服务用户无法使用智能卡登录到远程桌面服务会话,(1) 允许智能卡设备重定向。") : Amended ToSubclass] uint32 RedirectSmartCards; [Description("PolicySourceRedirectSmartCards 指示属性 RedirectSmartCards 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceRedirectSmartCards; [Description("启用磁盘公平共享调度: (0) 磁盘公平共享调度已禁用,(1) 磁盘公平共享调度已启用。") : Amended ToSubclass] uint32 EnableDiskFSS; [Description("启用网络公平共享调度: (0) 网络公平共享调度已禁用,(1) 网络公平共享调度已启用。") : Amended ToSubclass] uint32 EnableNetworkFSS; [Description("用户会话的默认网络公平共享权重,有效数字为 1 到 9") : Amended ToSubclass] uint32 NetworkFSSUserSessionWeight; [Description("本地系统进程的默认网络公平共享权重,有效数字为 1 到 9") : Amended ToSubclass] uint32 NetworkFSSLocalSystemWeight; [Description("捕获所有网络流量的默认网络公平共享权重,有效数字为 1 到 9") : Amended ToSubclass] uint32 NetworkFSSCatchAllWeight; [Description("启用或禁用时区重定向。") : Amended ToSubclass] uint32 SetTimeZoneRedirection([In] uint32 TimeZoneRedirection); [Description("此方法已弃用,将返回 WBEM_E_NOT_SUPPORTED 而不执行任何操作。") : Amended ToSubclass] uint32 AddDirectConnectLicenseServer([In] string LicenseServerName); [Description("此方法已弃用,将返回 WBEM_E_NOT_SUPPORTED 而不执行任何操作。") : Amended ToSubclass] uint32 DeleteDirectConnectLicenseServer([In] string LicenseServerName); [Description("此方法已弃用,将返回 WBEM_E_NOT_SUPPORTED 而不执行任何操作。") : Amended ToSubclass] uint32 UpdateDirectConnectLicenseServer([In] string LicenseServerList); [Description("获取已知许可证服务器的列表。如果没有已知许可证服务器,则返回空数组。") : Amended ToSubclass] uint32 GetRegisteredLicenseServerList([out] string RegisteredLSList[]); [Description("检索指定许可证服务器的列表。") : Amended ToSubclass] uint32 GetSpecifiedLicenseServerList([out] string SpecifiedLSList[]); [Description("更新指定许可证服务器的列表,替换任何现有的指定许可证服务器。") : Amended ToSubclass] uint32 SetSpecifiedLicenseServerList([In] string SpecifiedLSList[]); [Description("从指定许可证服务器的列表中删除所有许可证服务器。") : Amended ToSubclass] uint32 EmptySpecifiedLicenseServerList(); [Description("将给定许可证服务器设置为指定许可证服务器的列表中的第一个条目。") : Amended ToSubclass] uint32 SetPrimaryLicenseServer([In] string LicenseServerName); [Description("将给定许可证服务器添加到指定许可证服务器的列表的末尾。") : Amended ToSubclass] uint32 AddLSToSpecifiedLicenseServerList([In] string LicenseServerName); [Description("从指定许可证服务器的列表中删除给定许可证服务器。") : Amended ToSubclass] uint32 RemoveLSFromSpecifiedLicenseServerList([In] string LicenseServerName); [Description("检索管理员早前设置的注册令牌值。") : Amended ToSubclass] uint32 GetLicensingAadInfo([out] string LicensingClientId,[out] uint32 TokenLength,[out] string TenantAadToken); [Description("使用管理员提供的值设置或更新注册令牌") : Amended ToSubclass] uint32 SetLicensingAadInfo([In] string LicensingClientId,[In] string TenantAadToken); [Description("检索 RDS 服务器版本") : Amended ToSubclass] uint32 GetRDSVersion([out] uint32 Version); [Description("基于终端服务器模式配置许可证类型: 对于远程管理 - 用于管理的远程桌面,应用程序服务器 - 每设备和每用户,个人终端服务器 - 个人终端服务器。") : Amended ToSubclass] uint32 ChangeMode([In] uint32 LicensingType); [Description("允许或拒绝新的 TS 连接。第二个参数是可选的,如果指定并设置为 TRUE,则根据 AllowTSConnections 是 true 还是 false,分别启用或禁用远程桌面防火墙例外规则。") : Amended ToSubclass] uint32 SetAllowTSConnections([In] uint32 AllowTSConnections,[In] uint32 ModifyFirewallException); [Description("启用或禁用 SingleSession 状态。") : Amended ToSubclass] uint32 SetSingleSession([In] uint32 SingleSession); [Description("允许或禁止注销已登录到控制台的管理员。") : Amended ToSubclass] uint32 SetDisableForcibleLogoff([In] uint32 DisableForcibleLogoff); [Description("设置计算机的 ProfilePath。") : Amended ToSubclass] uint32 SetProfilePath([In] string ProfilePath); [Description("设置计算机的主目录。") : Amended ToSubclass] uint32 SetHomeDirectory([In] string HomeDirectory); [Description("PropertyName 是一个字符串属性,可以为 DeleteTempFolders 或 UseTempFolders。这些标志设置为 False 或 True,具体取决于 Value 是设置为 0 还是 1。如果成功,调用将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 SetPolicyPropertyName([In] string PropertyName,[In] boolean Value); [Description("将回退打印机驱动程序设置为以下值之一: 0 = 无回退打印驱动程序;1 = 最佳推测;2 = 最佳推测,如果找不到匹配项,则回退到 PCL;3 = 最佳推测,如果找不到匹配项,则回退到 PS;4 = 最佳推测,如果找不到匹配项,则显示 PCL 和 PS 驱动程序。") : Amended ToSubclass] uint32 SetFallbackPrintDriverType([In] uint32 FallbackPrintDriverType); [Description("获取终端服务网络卡 ID 和描述。") : Amended ToSubclass] uint32 GetTSLanaIds([out] uint32 LanaIdList[],[out] string LanaIdDescriptions[]); [Description("检索 winstation 驱动程序名称的列表。") : Amended ToSubclass] uint32 GetWinstationDriverNames([out] string WinstaDriverNames[]); [Description("基于侦听程序名称和 NIC 的唯一组合创建新的侦听程序堆栈。") : Amended ToSubclass] uint32 CreateWinstation([in] string Name,[in] string WinstaDriverName,[in] uint32 LanaId); [Description("如果许可证服务器有效,则 Ping 许可证服务器返回 S_OK,否则返回 S_FALSE") : Amended ToSubclass] uint32 PingLicenseServer([in] string ServerName); [Description("连接到许可证服务器并更新连接状态") : Amended ToSubclass] uint32 GetTStoLSConnectivityStatus([in] string ServerName,[out,Values{"LS_CONNECTABLE_UNKNOWN", "LS_CONNECTABLE_VALID_WS08R2", "LS_CONNECTABLE_VALID_WS08", "LS_CONNECTABLE_BETA_RTM_MISMATCH", "LS_CONNECTABLE_LOWER_VERSION", "LS_CONNECTABLE_NOT_IN_TSCGROUP", "LS_NOT_CONNECTABLE", "LS_CONNECTABLE_UNKNOWN_VALIDITY", "LS_CONNECTABLE_BUT_ACCESS_DENIED", "LS_CONNECTABLE_VALID_WS08R2_VDI", "LS_CONNECTABLE_FEATURE_NOT_SUPPORTED", "LS_CONNECTABLE_VALID_LS"} : Amended ToSubclass] uint32 TStoLSConnectivityStatus); [Description("检查是否允许 TS 基于许可证服务器上的许可证服务器安全组策略以及许可证服务器上的 RDS 终结点服务器本地组成员资格从许可证服务器中请求 CAL。如果 TS 有权访问许可证服务器,则返回 S_OK,否则返回 S_FALSE") : Amended ToSubclass] uint32 CanAccessLicenseServer([in] string ServerName,[out] uint32 AccessAllowed); [Description("枚举所有许可证服务器以及发现方法") : Amended ToSubclass] uint32 FindLicenseServers([out] Win32_TSDiscoveredLicenseServer LicenseServersList[],[out] uint32 Count); [Description("提供终端服务器宽限期的剩余天数,值为零指示宽限期已结束") : Amended ToSubclass] uint32 GetGracePeriodDays([out] uint32 DaysLeft); [Description("提供 TS 域名") : Amended ToSubclass] uint32 GetDomain([out] string Domain); }; [Description("Win32_TerminalServiceToSetting 类表示 Element 属性 Win32_TerminalService 与 Setting 属性 Win32_TerminalServiceSetting 之间的关联,Setting 属性包括终端服务器模式、授权、Active Desktop、权限功能、删除临时文件夹和每个会话的临时文件夹。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TerminalServiceToSetting : CIM_ElementSetting { }; [Description("Win32_TerminalSetting 类是所有终端服务器设置类的抽象基类。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TerminalSetting : CIM_Setting { [Description("终端的名称。") : Amended ToSubclass] string TerminalName; }; [Description("Win32_TerminalTerminalSetting 类表示终端与其配置设置之间的关联。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TerminalTerminalSetting : CIM_ElementSetting { }; [Description("Win32_Terminal 类是 TerminalSetting 关联的元素,其中 General、Logon、Session、Environment、Remote Control、Client、Network Adapter 和 Permission 等组是几个配置设置类。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_Terminal : CIM_LogicalElement { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("启用或禁用终端。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 fEnableTerminal; [Description("确定给定终端的已登录会话数") : Amended ToSubclass] uint32 LoggedOnUsers; [Description("启用或禁用终端。此函数采用一个参数,即启用或禁用它的标志。如果成功,调用将返回零;如果失败,则返回错误。") : Amended ToSubclass] uint32 Enable([In] uint32 fEnableTerminal); [Description("创建终端。此函数采用三个参数: 终端的名称、TerminalProtocol 和 Transport,后两个参数是 Win32_TSGeneralSetting 类的属性。此函数将使用默认设置创建终端,这些设置可以通过各种 Win32_TerminalSetting 类中的相应函数进行自定义。如果成功,此函数将返回零;如果失败,则返回错误。") : Amended ToSubclass] uint32 Create([In] string NewTerminalName,[In] string Transport,[In] string TerminalProtocol); [Description("重命名终端。此函数采用一个参数,即 New Terminalname。如果成功,调用将返回零;如果失败,则返回错误。") : Amended ToSubclass] uint32 Rename([In] string NewTerminalName); [Description("删除指定的终端。此函数采用一个参数,即 Terminalname。如果成功,调用将返回零;如果失败,则返回错误。") : Amended ToSubclass] uint32 Delete([In] string NewTerminalName); }; [Description("Win32_TSGeneralSetting 包括很多功能,如协议、传输、备注、Windows 身份验证和加密级别。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSGeneralSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("会话层协议的名称。示例: Microsoft RDP 6.0。") : Amended ToSubclass] string TerminalProtocol; [Description("显示用于连接的传输类型。示例: TCP、NETBIOS、IPX/SPX。") : Amended ToSubclass] string Transport; [Description("侦听程序的描述性名称。") : Amended ToSubclass] string Comment; [Description("指定在系统上已安装另一个身份验证包的情况下连接是否默认为标准 Windows 身份验证。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 WindowsAuthentication; [Description("若要使用 SSLCertificateSHA1Hash WMI 属性,必须先找到要将目标服务器设置为使用其的证书的十六进制指纹值。可以使用证书 MMC 管理单元查找证书的指纹。在证书管理单元中,打开证书的属性页,然后转到“详细信息”选项卡。") : Amended ToSubclass] string SSLCertificateSHA1Hash; [Description("包含一个序列化的证书存储,该存储包含计算机的 MY 存储中的所有证书,这些证书是用于终端服务器 SSL 的有效服务器证书。") : Amended ToSubclass] uint8 Certificates[]; [Description("SSLCertificeSHA1HashType 指示属性 SSLCertificeSHA1Hash 是无效的 (0)、默认的自签名 (1)、默认的 GP 强制实施 (2) 还是自定义 (3)。") : Amended ToSubclass] uint32 SSLCertificateSHA1HashType; [Description("Windows 2000 支持 3 个加密级别: “低”、“中/客户端兼容”和“高”。Windows 2003 支持 4 个加密级别: “低”、“中/客户端兼容”、“高”和“符合 FIPS 标准”") : Amended ToSubclass,Values{"低", "中/客户端兼容", "高", "符合 FIPS 标准"} : Amended ToSubclass] uint32 MinEncryptionLevel; [Description("指定用于远程连接的用户身份验证类型。如果启用,则协议需要在连接时尽早进行用户身份验证,以增强服务器对网络攻击的防御。只有支持 RDP 版本 6.0 或更高版本的 RDP 客户端才能连接。为了避免远程用户中断,建议先部署支持相应协议版本的 RDP 客户端,然后再启用该属性。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 UserAuthenticationRequired; [Description("PolicySourceUserAuthenticationRequired 指示属性 UserAuthenticationRequired 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceUserAuthenticationRequired; [Description("PolicySourceMinEncryptionLevel 指示属性 MinEncryptionLevel 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceMinEncryptionLevel; [Values{"RDP 安全层", "协商", "SSL", "NEWTBD"} : Amended ToSubclass] uint32 SecurityLayer; [Description("PolicySourceSecurityLayer 指示属性 SecurityLayer 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceSecurityLayer; [Description("本地计算机个人证书使用者名称的显示名称") : Amended ToSubclass] string CertificateName; [Description("将加密级别设置为“低”、“中”或“高”之一。此函数采用一个指定加密级别的参数: 1 = 低、2 = 中、3 = 高、4 = 符合 FIPS 标准。") : Amended ToSubclass] uint32 SetEncryptionLevel([In] uint32 MinEncryptionLevel); [Description("将安全层设置为“RDP 安全层”、“协商”或 SSL 之一。此函数采用一个指定安全层的参数: 0 = RDP 安全层、1 = 协商、2 = SSL。请注意,如果当前加密级别 = 1,则安全层 = 2 的设置无效。") : Amended ToSubclass] uint32 SetSecurityLayer([In] uint32 SecurityLayer); [Description("启用或禁用 UserAuthenticationRequired。此函数采用一个参数 - 启用或禁用它的标志。如果成功,调用将返回零;如果失败,则返回错误。") : Amended ToSubclass] uint32 SetUserAuthenticationRequired([In] uint32 UserAuthenticationRequired); }; [Description("Win32_TSLogonSetting 类允许配置登录设置,如 Username、Domain 和 PromptForPassword。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSLogonSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("描述服务器用于确定连接设置的策略。") : Amended ToSubclass,Values{"每用户", "服务器重写"} : Amended ToSubclass] uint32 ClientLogonInfoPolicy; [Description("指定用户在登录到服务器时是否总是收到输入密码的提示。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 PromptForPassword; [Description("PolicySourcePromptForPassword 指示属性 PromptForPassword 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourcePromptForPassword; [Description("指定是否从客户端检索用户名。") : Amended ToSubclass] string UserName; [Description("PolicySourceUserName 指示属性 UserName 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceUserName; [Description("指定用户的计算机所在的域的名称。") : Amended ToSubclass] string Domain; [Description("PolicySourceDomain 指示属性 Domain 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceDomain; [Description("设置属性 UserName、Password 和 Domain,这些属性明确指定要用于身份验证的凭据。如果处于服务器重写模式,调用将返回“成功”;如果策略已设置为用户或组策略,则返回错误。") : Amended ToSubclass] uint32 ExplicitLogon([In] string UserName,[In] string Domain,[In] string Password); [Description("如果不在组策略下,则启用或禁用 PromptForPasword 标志。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 SetPromptForPassword([In] uint32 PromptForPassword); }; [Description("Win32_TSSessionSetting 类定义 Win32_Terminal 的配置。这包括很多功能,如 Time-limits、Disconnection 和 Reconnection 操作。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSSessionSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("描述服务器用于确定用户会话的活动会话限制的策略。") : Amended ToSubclass,Values{"每用户", "服务器重写"} : Amended ToSubclass] uint32 TimeLimitPolicy; [Description("活动会话所允许的最长时间(以毫秒为单位),其中 0 表示“从不”。") : Amended ToSubclass] uint32 ActiveSessionLimit; [Description("PolicySourceActiveSessionLimit 指示属性 ActiveSessionLimit 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceActiveSessionLimit; [Description("结束已断开连接的会话前的时间(以毫秒为单位),其中 0 表示“从不”。") : Amended ToSubclass] uint32 DisconnectedSessionLimit; [Description("PolicySourceDisconnectedSessionLimit 指示属性 DisconnectedSessionLimit 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceDisconnectedSessionLimit; [Description("空闲会话限制(以毫秒为指定单位),其中 0 表示“从不”。") : Amended ToSubclass] uint32 IdleSessionLimit; [Description("PolicySourceIdleSessionLimit 指示属性 IdleSessionLimit 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceIdleSessionLimit; [Description("描述服务器用于确定何时由于网络丢失或时间限制而中断连接的策略。") : Amended ToSubclass,Values{"每用户", "服务器重写"} : Amended ToSubclass] uint32 BrokenConnectionPolicy; [Description("如果达到会话限制或连接中断,则执行以下操作之一: 断开连接 - 将用户与会话断开连接;终止 - 从服务器中永久删除会话。") : Amended ToSubclass,Values{"断开连接", "终止"} : Amended ToSubclass] uint32 BrokenConnectionAction; [Description("PolicySourceBrokenConnectionAction 指示属性 BrokenConnectionAction 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceBrokenConnectionAction; [Description("指示用户是否必须使用同一客户端才能重新连接到已断开连接的会话。") : Amended ToSubclass,Values{"任何客户端", "上一个客户端"} : Amended ToSubclass] uint32 ReconnectionPolicy; [Description("PolicySourceReconnectPolicy 指示属性 ReconnectPolicy 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceReconnectionPolicy; [Description("非零值指示在达到最长空闲时间后注销会话前显示警告。如果值为 O,则不显示警告。此设置没有 GP 并且只能通过 tsconfig 设置。") : Amended ToSubclass] uint32 EnableTimeoutWarning; [Description("SessionLimitType 是以下属性的枚举: 0 = ActiveSessionLimit、1 = DisconnectedSessionLimit 和 2 = IdleSessionLimit,这些属性指定活动会话、已断开连接的会话和空闲会话所允许的最长时间限制(“从不”适用于所有三个属性)。值以毫秒为单位。如果处于服务器重写模式,调用在成功时将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 TimeLimit([In] string SessionLimitType,[In] uint32 ValueLimit); [Description("设置在达到会话限制或连接已断开时要执行的操作,将执行以下操作之一: 断开连接: 将用户与会话断开连接;终止: 从服务器中永久删除会话。属性 BrokenConnectionAction 仅适用于服务器重写模式,并且在服务器重写模式下返回成功;如果策略已设置为用户或组策略,则返回错误。") : Amended ToSubclass] uint32 BrokenConnection([In] uint32 BrokenConnectionAction); }; [Description("Win32_TSEnvironmentSetting 类定义 Win32_Terminal 的配置。这包括初始程序策略等功能。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSEnvironmentSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("描述服务器用于确定初始程序路径、文件名和起始文件夹的策略。") : Amended ToSubclass,Values{"每用户", "服务器重写", "单应用模式"} : Amended ToSubclass] uint32 InitialProgramPolicy; [Description("指定用户在登录到终端服务器时要启动的程序的名称和路径。") : Amended ToSubclass] string InitialProgramPath; [Description("PolicySourceInitialProgramPath 指示属性 InitialProgramPath 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceInitialProgramPath; [Description("指定用户在登录到终端服务器时要启动的程序的工作目录路径。") : Amended ToSubclass] string Startin; [Description("PolicySourceStartIn 指示属性 StartIn 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceStartIn; [Description("指定是否禁止显示 Windows 客户端墙纸。此选项可通过缩短重画屏幕所需的时间来节省系统资源。") : Amended ToSubclass,Values{"False", "True"} : Amended ToSubclass] uint32 ClientWallPaper; [Description("PolicySourceClientWallPaper 指示属性 ClientWallPaper 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceClientWallPaper; [Description("设置属性 InitialProgramPath 和 StartIn,这些属性指定用户在登录到终端服务器时要启动的程序的名称、路径以及工作目录路径。如果在服务器重写模式下调用成功,则返回整数值 0;如果策略已设置为组控制策略,则返回错误。") : Amended ToSubclass] uint32 InitialProgram([In] string InitialProgramPath,[In] string Startin); [Description("如果该属性不是由组策略启用,则启用或禁用 ClientWallPaper。如果在服务器重写模式下调用成功,则返回整数值 0;如果策略已设置为组控制策略,则返回错误") : Amended ToSubclass] uint32 SetClientWallPaper([In] uint32 ClientWallPaper); }; [Description("Win32_TSRemoteControlSetting 类定义 Win32_Terminal 的配置。这包括远程控制策略等功能。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSRemoteControlSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("描述服务器用于检索远程控制设置的策略。") : Amended ToSubclass,Values{"每用户", "服务器重写"} : Amended ToSubclass] uint32 RemoteControlPolicy; [Description("指定是否需要用户的权限才能远程控制会话。") : Amended ToSubclass,Values{"禁用", "EnableInputNotify", "EnableInputNoNotify", "EnableNoInputNotify", "EnableNoInputNoNotify"} : Amended ToSubclass] uint32 LevelOfControl; [Description("PolicySourceLevelOfControl 指示属性 LevelOfControl 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceLevelOfControl; [Description("设置属性 LevelOfControl,该属性指定控制级别,如 Disable、EnableInputNotify、EnableInputNoNotify、EnableNoInputNotify、EnableNoInputNoNotify。如果在服务器重写模式下调用成功,则返回整数值 0;如果设置在组策略控制下,则返回错误。") : Amended ToSubclass] uint32 RemoteControl([In] uint32 LevelOfControl); }; [Description("Win32_TSClientSetting 类定义 Win32_Terminal 的配置。这包括很多功能,如连接策略、打印机、驱动器、剪贴板映射、颜色深度和连接设置。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSClientSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("描述服务器用于检索连接设置的策略。") : Amended ToSubclass,Values{"每用户", "服务器重写"} : Amended ToSubclass] uint32 ConnectionPolicy; [Description("指定是否在登录时自动连接到客户端的驱动器。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 ConnectClientDrivesAtLogon; [Description("指定是否在登录时自动连接到所有映射的客户端本地打印机。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 ConnectPrinterAtLogon; [Description("指定是否自动打印到客户端的本地打印机。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 DefaultToClientPrinter; [Description("PolicySourceDefaultToClientPrinter 指示属性 DefaultToClientPrinter 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceDefaultToClientPrinter; [Description("指定是启用还是禁用客户端窗口的打印机映射。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 WindowsPrinterMapping; [Description("PolicySourceWindowsPrinterMapping 指示属性 WindowsPrinterMapping 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceWindowsPrinterMapping; [Description("指定是启用还是禁用 LPT 端口映射。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 LPTPortMapping; [Description("PolicySourceLPTPortMapping 指示属性 LPTPortMapping 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceLPTPortMapping; [Description("指定是启用还是禁用 COM 端口映射。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 COMPortMapping; [Description("PolicySourceCOMPortMapping 指示属性 COMPortMapping 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceCOMPortMapping; [Description("指定是启用还是禁用驱动器映射。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 DriveMapping; [Description("PolicySourceDriveMapping 指示属性 DriveMapping 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceDriveMapping; [Description("指定是启用还是禁用音频映射。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 AudioMapping; [Description("PolicySourceAudioMapping 指示属性 AudioMapping 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceAudioMapping; [Description("指定是启用还是禁用剪贴板映射。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 ClipboardMapping; [Description("PolicySourceClipboardMapping 指示属性 ClipboardMapping 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceClipboardMapping; [Description("指定是否重写用户的最大颜色设置。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 ColorDepthPolicy; [Description("PolicySourceColorDepthPolicy 指示属性 ColorDepthPolicy 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceColorDepthPolicy; [Description("可用颜色深度的字符串数组。可以从值限定符派生字符串值。参考: 第 7.3 节") : Amended ToSubclass,Values{"8 位", "15 位", "16 位", "24 位", "32 位"} : Amended ToSubclass] uint32 ColorDepth; [Description("PolicySourceColorDepth 指示属性 ColorDepth 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceColorDepth; [Description("服务器支持的最大监视器数的值") : Amended ToSubclass] uint32 MaxMonitors; [Description("服务器支持的最大 X 分辨率的值") : Amended ToSubclass] uint32 MaxXResolution; [Description("服务器支持的最大 Y 分辨率的值") : Amended ToSubclass] uint32 MaxYResolution; [Description("PolicySourceMaxMonitors 指示属性 MaxMonitors 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceMaxMonitors; [Description("PolicySourceMaxResolution 指示属性 MaxMonitors 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceMaxResolution; [Description("指定是否允许 PNP 重定向。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 PNPRedirection; [Description("PolicySourcePNPRedirection 指示属性 PNPRedirection 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourcePNPRedirection; [Description("指定是否允许音频捕获重定向。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 AudioCaptureRedir; [Description("PolicySourceAudioCaptureRedir 指示属性 AudioCaptureRedir 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceAudioCaptureRedir; [Description("指定是否允许视频播放重定向。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 VideoPlaybackRedir; [Description("PolicySourceVideoPlaybackRedir 指示属性 VideoPlaybackRedir 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceVideoPlaybackRedir; [Description("指定 RDP 体验的配置文件。") : Amended ToSubclass,Values{"缩放", "体验", "带宽"} : Amended ToSubclass] uint32 RemoteSessionProfile; [Description("PolicySourceRemoteSessionProfile 指示属性 RemoteSessionProfileis 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceRemoteSessionProfile; [Description("指定是否首选 AVC444 模式。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 AVC444ModePreferred; [Description("PolicySourceAvc444ModePreferred 指示属性 AVC444ModePreferred 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceAvc444ModePreferred; [Description("指定用于 RDP 体验的图像质量。") : Amended ToSubclass,Values{"无损", "高", "中"} : Amended ToSubclass] uint32 EncodeImageQuality; [Description("PolicySourceEncodeImageQuality 指示属性 EncodeImageQualityis 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceEncodeImageQuality; [Description("指定 RD 会话主机服务器是否将硬件图形呈现器用作默认适配器。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 HardwareGraphicsAdapter; [Description("PolicySourceHardwareGraphicsAdapter 指示属性 HardwareGraphicsAdapteris 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceHardwareGraphicsAdapter; [Description("指定 RDP 可用于访问服务器的传输协议。0: 同时使用 UDP 和 TCP,1: 仅使用 TCP,2: 使用 UDP 或 TCP。") : Amended ToSubclass] uint32 SelectTransport; [Description("PolicySourceSelectTransport 指示属性 SelectTransportis 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceSelectTransport; [Description("指定是否使用网络检测。0: 在连接时并且处于稳定状态下使用,1: 在连接时禁用,2: 在处于稳定状态下禁用,3: 在连接时并且处于稳定状态下禁用。") : Amended ToSubclass] uint32 SelectNetworkDetect; [Description("PolicySourceSelectNetworkDetect 指示属性 SelectNetworkDetectis 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceSelectNetworkDetect; [Description("允许或禁止重写用户的最大颜色设置。") : Amended ToSubclass] uint32 SetColorDepthPolicy([In] uint32 ColorDepthPolicy); [Description("将 ColorDepth 属性设置为以下可能值之一: 1 = 8 位、2 = 15 位、3 = 16 位、4 = 24 位以及 5 = 32 位。如果在服务器重写模式下调用成功,则返回整数值 0;如果设置在组策略控制下,则返回错误。") : Amended ToSubclass] uint32 SetColorDepth([In] uint32 ColorDepth); [Description("将服务器支持的最大监视器数的最小值设置为 1,最大值设置为 10") : Amended ToSubclass] uint32 SetMaxMonitors([In] uint32 MaxMonitors); [Description("设置服务器支持的最大 X 分辨率(最小值为 200,最大值为 4096)。") : Amended ToSubclass] uint32 SetMaxXResolution([In] uint32 MaxXResolution); [Description("设置服务器支持的最大 Y 分辨率(最小值为 200,最大值为 2048)。") : Amended ToSubclass] uint32 SetMaxYResolution([In] uint32 MaxYResolution); [Description("设置属性 ConnectClientDrivesAtLogon、ConnectPrinterAtLogon 和 DefaultToClientPrinter。如果调用成功,则返回整数值 0;如果处于服务器重写模式,则返回错误。") : Amended ToSubclass] uint32 ConnectionSettings([In] uint32 ConnectClientDrivesAtLogon,[In] uint32 ConnectPrinterAtLogon,[In] uint32 DefaultToClientPrinter); [Description("PropertyName 是以下属性的枚举: 0 = LPTPortMapping、1 = COMPortMapping、2 = AudioMapping、3 = ClipboardMapping、4 = WindowsPrinterMapping。每个属性都是一个作为 False 或 True 的标志,具体取决于值是设置为 0 还是 1。如果 PropertyName 不在组策略/服务器重写模式下,调用将在成功时返回 0,否则返回错误。") : Amended ToSubclass] uint32 SetClientProperty([In] string PropertyName,[In] boolean Value); [Description("指定是为 RemoteApp 启用还是禁用高级 RemoteFX 图形。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 AdvancedRemoteAppGraphics; [Description("PolicyAdvancedRemoteAppGraphics 指示属性 AdvancedRemoteAppGraphics 是否由服务器 (0)、组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicyAdvancedRemoteAppGraphics; }; [Description("Win32_TSNetworkAdapterSetting 类定义 Win32_Terminal 的配置。这包括很多功能,如网络适配器、最大连接数等。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSNetworkAdapterSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("这是在 LAN 适配器的 Win32_NetworkAdapter 中找到的要设置的 DeviceID 值。值 0 表示所有 LAN 适配器。") : Amended ToSubclass] string NetworkAdapterID; [Description("这是用于确定已分配给指定终端的网络适配器的网络适配器 LanaID。") : Amended ToSubclass] uint32 NetworkAdapterLanaID; [Description("这是在 LAN 适配器的 Win32_NetworkAdapterConfiguration 中找到的要设置的 Description 值。值 0 表示所有 LAN 适配器。") : Amended ToSubclass] string NetworkAdapterName; [Description("最大连接数,其中 MAXINT 表示无限制。") : Amended ToSubclass] uint32 MaximumConnections; [Description("PolicySourceMaximumConnections 指示属性 MaximumConnections 是由服务器 (0)、组策略 (1) 还是默认值 (2) 配置。") : Amended ToSubclass] uint32 PolicySourceMaximumConnections; [Description("可用物理网络适配器的字符串数组,对应的 DeviceID 将作为 DeviceID 限定符的数组返回。") : Amended ToSubclass] string NetworkAdapterList[]; [Description("以在 NetworkAdapterList 数组中返回的物理网络适配器的顺序返回的可用 DeviceID 的字符串数组。") : Amended ToSubclass] string DeviceIDList[]; [Description("指定要设置的 NetworkAdapterID 的 GUID。如果 ID 无效或不存在,则返回值应做出相应说明。") : Amended ToSubclass] uint32 SelectAllNetworkAdapters(); [Description("指定要设置的网络适配器的 LanaID。如果指定的 LanaID 无效或不存在,将返回相应的错误。可通过枚举属于该类的属性 DeviceIDList 获取 LanaID 的可用列表。") : Amended ToSubclass] uint32 SetNetworkAdapterLanaID([In] uint32 NetworkAdapterLanaID); [Description("指定要设置的 NetworkAdapter 的 IP 地址。如果 IP 无效或不存在,则返回值应做出相应说明。可通过枚举 Win32_TSNetworkAdapterListSetting 类的属性获取 IP 地址。") : Amended ToSubclass] uint32 SelectNetworkAdapterIP([In] string NetworkAdapterIP); }; [Description("Win32_TSPermissionsSetting 类允许向新帐户授予权限并还原终端的默认权限。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSPermissionsSetting : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [Description("与终端关联的字符串安全描述符。") : Amended ToSubclass] string StringSecurityDescriptor; [Description("指定是否拒绝本地管理员自定义权限") : Amended ToSubclass] uint32 DenyAdminPermissionForCustomization; [Description("PolicySourceMinEncryptionLevel 指示属性 MinEncryptionLevel 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceDenyAdminPermissionForCustomization; [Description("将 User、Group 或 Computer 添加到已定义权限集的现有集。AccountName 含有两项: 条目的域和名称。PermissionPreSet 是以下权限的枚举: WINSTATION_GUEST_ACCESS、WINSTATION_USER_ACCESS、WINSTATION_ALL_ACCESS") : Amended ToSubclass] uint32 AddAccount([In] string AccountName,[In] uint32 PermissionPreSet); [Description("向用户和组提供默认权限集。") : Amended ToSubclass] uint32 RestoreDefaults(); }; [Description("Win32_TSNetworkAdapterListSetting 类枚举网络适配器的 IP 地址、GUID 和名称。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSNetworkAdapterListSetting : Win32_TerminalSetting { [Description("指定 LanAdapter 的 GUID。") : Amended ToSubclass] string NetworkAdapterID; [key,Description("指定 LanAdapter 的 IP 地址。") : Amended ToSubclass] string NetworkAdapterIP; [Description("指定 LanAdapter 的显示名称。") : Amended ToSubclass] string Description; }; [Description("Win32_TSAccount 类允许删除 Win32_Terminal 类上的现有帐户以及修改现有权限") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSAccount : Win32_TerminalSetting { [key,Description("终端的名称。") : Amended ToSubclass] string TerminalName; [key,Description("指定含有以下两项的 AccountName: 条目的 Domain 和 Name。") : Amended ToSubclass] string AccountName; [Description("指定条目的安全标识符。") : Amended ToSubclass] string SID; [Description("指定允许的权限。权限是以下一项或多项的组合: WINSTATION_QUERY、WINSTATION_SET、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED、WINSTATION_SHADOW、WINSTATION_LOGON、WINSTATION_LOGOFF、WINSTATION_MSG、WINSTATION_CONNECT、WINSTATION_DISCONNECT。") : Amended ToSubclass,Values{"WINSTATION_QUERY=0x1", "WINSTATION_SET=0x2", "WINSTATION_LOGOFF=0x4", "WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED = 0xF008", "WINSTATION_SHADOW=0x10", "WINSTATION_LOGON=0x20", "WINSTATION_MSG=0x80", "WINSTATION_CONNECT=0x100", "WINSTATION_DISCONNECT=0x200"} : Amended ToSubclass] uint32 PermissionsAllowed; [Description("指定允许的权限。权限是以下一项或多项的组合: WINSTATION_QUERY、WINSTATION_SET、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED、WINSTATION_SHADOW、WINSTATION_LOGON、WINSTATION_LOGOFF、WINSTATION_MSG、WINSTATION_CONNECT、WINSTATION_DISCONNECT。") : Amended ToSubclass,Values{"WINSTATION_QUERY=0x1", "WINSTATION_SET=0x2", "WINSTATION_LOGOFF=0x4", "WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED = 0xF008", "WINSTATION_SHADOW=0x10", "WINSTATION_LOGON=0x20", "WINSTATION_MSG=0x80", "WINSTATION_CONNECT=0x100", "WINSTATION_DISCONNECT=0x200"} : Amended ToSubclass] uint32 PermissionsDenied; [Description("指定成功的审核权限。权限是以下一项或多项的组合: WINSTATION_QUERY、WINSTATION_SET、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED、WINSTATION_SHADOW、WINSTATION_LOGON、WINSTATION_LOGOFF、WINSTATION_MSG、WINSTATION_CONNECT、WINSTATION_DISCONNECT。") : Amended ToSubclass,Values{"WINSTATION_QUERY=0x1", "WINSTATION_SET=0x2", "WINSTATION_LOGOFF=0x4WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED = 0xF008", "WINSTATION_SHADOW=0x10", "WINSTATION_LOGON=0x20", "WINSTATION_MSG=0x80", "WINSTATION_CONNECT=0x100", "WINSTATION_DISCONNECT=0x200"} : Amended ToSubclass] uint32 AuditSuccess; [Description("指定失败的审核权限。权限是以下一项或多项的组合: WINSTATION_QUERY、WINSTATION_SET、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED、WINSTATION_SHADOW、WINSTATION_LOGON、WINSTATION_LOGOFF、WINSTATION_MSG、WINSTATION_CONNECT、WINSTATION_DISCONNECT。") : Amended ToSubclass,Values{"WINSTATION_QUERY=0x1", "WINSTATION_SET=0x2", "WINSTATION_LOGOFF=0x4", "WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED = 0xF008", "WINSTATION_SHADOW=0x10", "WINSTATION_LOGON=0x20", "WINSTATION_MSG=0x80", "WINSTATION_CONNECT=0x100", "WINSTATION_DISCONNECT=0x200"} : Amended ToSubclass] uint32 AuditFail; [Description("从现有项中删除用户或组。") : Amended ToSubclass] uint32 Delete(); [Description("使用此方法可针对现有帐户设置一组更细化的权限。标志 Allow 指定是允许还是拒绝权限。权限可通过 PermissionMask 单独设置。PermissionMask 是以下值的枚举: WINSTATION_QUERY、WINSTATION_SET、WINSTATION_LOGOFF、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED、WINSTATION_SHADOW、WINSTATION_LOGON、WINSTATION_MSG、WINSTATION_CONNECT、WINSTATION_DISCONNECT") : Amended ToSubclass] uint32 ModifyPermissions([In] uint32 PermissionMask,[In] boolean Allow); [Description("为指定的现有帐户设置一组更细化的审核权限。权限可通过 PermissionMask 单独设置。PermissionMask 是以下值的枚举: WINSTATION_QUERY=0、WINSTATION_SET=1、WINSTATION_LOGOFF=2、WINSTATION_VIRTUAL | STANDARD_RIGHTS_REQUIRED=3、WINSTATION_SHADOW=4、WINSTATION_LOGON=5、WINSTATION_MSG=7、WINSTATION_CONNECT=8、WINSTATION_DISCONNECT=9") : Amended ToSubclass] uint32 ModifyAuditPermissions([In] uint32 PermissionMask,[In] boolean Success); }; [Description("Win32_TSSessionDirectory 类定义 Win32_TSSessionDirectorySetting 的配置。这包括很多功能,如会话目录存储、群集名和服务器 IP 地址。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSSessionDirectory : CIM_Setting { [Description("会话目录的网络路径位置。") : Amended ToSubclass] string SessionDirectoryLocation; [Description("PolicySourceSessionDirectoryLocation 指示属性 SessionDirectoryLocation 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceSessionDirectoryLocation; [key,Description("启用或禁用会话目录。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 SessionDirectoryActive; [Description("PolicySourceSessionActive 指示属性 SessionDirectoryActive 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceSessionDirectoryActive; [Description("允许或拒绝检索会话目录的 IP 地址。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 SessionDirectoryExposeServerIP; [Description("PolicySourceSessionDirectoryExposeServerIP 指示属性 SessionDirectoryExposeServerIP 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceSessionDirectoryExposeServerIP; [Description("此终端服务器所属的群集。通常,这是代表计算机虚拟 IP 地址的 DNS 条目。") : Amended ToSubclass] string SessionDirectoryClusterName; [Description("PolicySourceLoadBalancing 指示属性 GetLoadBalancingStateis 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceLoadBalancing; [Description("GetLoadBalancingState 指示是否将服务器配置为参与会话 Broker 负载平衡。") : Amended ToSubclass] uint32 GetLoadBalancingState; [Description("GetServerWeight 返回会话 Broker 负载平衡中使用的服务器权重值。") : Amended ToSubclass] uint32 GetServerWeight; [Description("PolicySourceSessionDirectoryClusterName 指示属性 SessionDirectoryClusterName 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceSessionDirectoryClusterName; [Description("指定会话目录使用的 LanAdapter 的 IP 地址。") : Amended ToSubclass] string SessionDirectoryIPAddress; [Description("PropertyName 是以下属性的枚举: 0 = SessionDirectoryLocation 和 1 = SessionDirectoryClusterName,这些属性是设置为 False 或 True 的标志,具体取决于值是设置为 0 还是 1。如果成功,调用将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 SetSessionDirectoryProperty([In] string PropertyName,[In] string Value); [Description("启用或禁用 SessionDirectory,具体取决于值是设置为 0 还是 1。如果成功,调用将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 SetSessionDirectoryActive([In] uint32 SessionDirectoryActive); [Description("允许或拒绝检索 SessionDirectory 的 IP 地址,具体取决于值是设置为 0 还是 1。如果成功,调用将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 SetSessionDirectoryExposeServerIP([In] uint32 SessionDirectoryExposeServerIP); [Description("获取令牌可重定向地址或 DNS 合格地址的完整列表。") : Amended ToSubclass] uint32 GetRedirectableAddresses([In] uint32 fTokenRedirection,[out] string IPAddresses[],[out] string AdapterNames[],[out] string NetConName[]); [Description("获取当前配置的令牌可重定向地址或 DNS 合格地址列表。") : Amended ToSubclass] uint32 GetCurrentRedirectableAddresses([out] uint32 fTokenRedirection,[out] string IPAddresses[]); [Description("写出配置的令牌可重定向地址或 DNS 合格地址列表。") : Amended ToSubclass] uint32 SetCurrentRedirectableAddresses([in] uint32 fTokenRedirection,[in] string IPAddresses[]); [Description("尝试访问会话目录服务器") : Amended ToSubclass] uint32 PingSessionDirectory([in] string ServerName); [Description("设置指示服务器是否参与会话 Broker 负载平衡的值。0 = 服务器将不参与会话 Broker 负载平衡,1 = 服务器将参与 TS 会话 Broker 负载平衡") : Amended ToSubclass] uint32 SetLoadBalancingState([in] uint32 StateValue); [Description("设置会话 Broker 负载平衡的服务器权重值。有效值范围是 1 到 10000。") : Amended ToSubclass] uint32 SetServerWeight([in] uint32 ServerWeightValue); [Description("GetTSRedirectorMode 指示是否将服务器配置为重定向程序。") : Amended ToSubclass] uint32 GetTSRedirectorMode; [Description("在指定位置创建指定最大大小的用户磁盘模板。创建的所有用户磁盘的最大大小将与该模板的最大大小匹配。") : Amended ToSubclass] uint32 CreateUserDiskTemplate([in] string UserDisksStorageUrl,[in] uint32 UserDiskMaxSizeInGB); [Description("启用并设置用户 VHD 的参数") : Amended ToSubclass] uint32 EnableUserVhd([in] string UvhdShareUrl,[in] string UvhdRoamingPolicyXml); [Description("禁用用户 VHD") : Amended ToSubclass] uint32 DisableUserVhd(); }; [Description("Win32_TSSessionDirectorySetting 类表示 Element 属性 Win32_TerminalService 与 Setting 属性 Win32_TSSessionDirectory 之间的关联,Setting 属性包括终端服务器会话目录位置、群集名和 SessionDirectoryActive 属性。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSSessionDirectorySetting : CIM_ElementSetting { }; [Description("Win32_TSVirtualIP 类定义 Win32_TSVirtualIPSetting 的配置。这包括很多功能,如启用虚拟 IP、将虚拟 IP 模式设置为每会话/每程序、将程序添加到需要虚拟 IP 的程序列表或从该列表中删除程序、枚举网络适配器以及设置要使用的网络适配器。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSVirtualIP : CIM_Setting { [key,Description("启用或禁用虚拟 IP。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 VirtualIPActive; [Description("PolicySourceVirtualIPActive 指示属性 VirtualIPActive 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceVirtualIPActive; [Description("描述所使用的模式。") : Amended ToSubclass,Values{"每会话", "每程序"} : Amended ToSubclass] uint32 VirtualIPMode; [Description("PolicySourceVirtualIPMode 指示属性 VirtualIPMode 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceVirtualIPMode; [Description("配置为使用虚拟 IP 的程序的字符串数组。这可以只是程序名,也可以是完整的二进制文件路径。") : Amended ToSubclass] string ProgramList[]; [Description("PolicySourceProgramList 指示属性 ProgramList 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceProgramList; [description("在 win32_networkadapter 中找到的描述。") : Amended ToSubclass] string NetworkAdapterDescription; [description("网络适配器的 Mac 地址。") : Amended ToSubclass] string NetworkAdapterMacAddress; [Description("PolicySourceNetworkAdapter 指示属性 NetworkAdapter 是由服务器 (0) 还是组策略 (1) 配置。") : Amended ToSubclass] uint32 PolicySourceNetworkAdapter; [description("可用物理网络适配器的描述的字符串数组") : Amended ToSubclass] string NetworkAdapterDescriptionList[]; [description("可用物理网络适配器的 Mac 地址的字符串数组") : Amended ToSubclass] string NetworkAdapterMacList[]; [Description("启用或禁用环回地址虚拟化。") : Amended ToSubclass,Values{"FALSE", "TRUE"} : Amended ToSubclass] uint32 VirtualizeLoopbackAddressesEnabled; [Description("启用或禁用 VirtualIP,具体取决于值是设置为 0 还是 1。如果成功,调用将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 SetVirtualIPActive([in] uint32 VirtualIPActive); [Description("根据值是设置为 0 还是 1 设置虚拟 IP 的模式。如果成功,调用将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 SetVirtualIPMode([in] uint32 VirtualIPMode); [Description("指定需要使用虚拟 IP 的程序的路径。如果路径无效或不存在,则返回值应做出相应说明。如果路径正确,则将其添加到 ProgramList 中的程序列表中。") : Amended ToSubclass] uint32 AddProgram([in] string ProgramPath); [Description("指定不需要使用虚拟 IP 的程序的路径。如果 ProgramList 中不存在程序,则返回值应做出相应说明。否则将从 ProgramList 的程序列表中将其删除。") : Amended ToSubclass] uint32 RemoveProgram([in] string ProgramPath); [Description("设置要使用虚拟 IP 的程序列表") : Amended ToSubclass] unint32 SetProgramList([in] string ProgramList[]); [Description("指定要设置的 NetworkAdapter 的 MAC 地址。如果 MAC 无效或不存在,或者如果模式为“每会话”,则返回值应做出相应说明。") : Amended ToSubclass] uint32 SelectNetworkAdapter([in] string NetworkAdapterMacAddress); [Description("根据值是 1 还是 0 来分别启用或禁用环回地址虚拟化。如果成功,调用将返回 0;如果策略已设置为组策略,则返回错误。") : Amended ToSubclass] uint32 SetVirtualizeLoopbackAddressesEnabled([in] uint32 VirtualizeLoopbackAddressesEnabled); }; [Description("Win32_TSVirtualIPSetting 类表示 Element 属性 Win32_TerminalService 与 Setting 属性 Win32_TSVirtualIP 之间的关联,Setting 属性包括很多功能,如启用虚拟 IP、将虚拟 IP 模式设置为每会话/每程序、将程序添加到需要虚拟 IP 的程序列表或从该列表中删除程序、枚举网络适配器、设置要使用的网络适配器,以及启用/禁用每程序的环回地址虚拟化。") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804)] class Win32_TSVirtualIPSetting : CIM_ElementSetting { };