SetServerWeight method of the Win32_TSSessionDirectory class

Sets the server weight value for Remote Desktop Connection Broker (RD Connection Broker) load balancing.

Syntax

uint32 SetServerWeight(
  [in] uint32 ServerWeightValue
);

Parameters

ServerWeightValue [in]

Type: uint32

The server weight value. The valid range is 1 to 10000.

Remarks

By default in the user interface of Remote Desktop Services Configuration, the server weight value is 100. The server weight is relative. Therefore, if you assign one server a value of 100, and one a value of 200, the server with a relative weight of 200 will receive twice the number of sessions.

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

See also

Win32_TSSessionDirectory