This topic has not yet been rated - Rate this topic

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

Minimum supported client

None supported [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Namespace

\\root\CIMV2\TerminalServices

MOF

Tscfgwmi.mof

See also

Win32_TSSessionDirectory

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.