SetTSRedirectorMode method of the Win32_TSSessionDirectory class
Sets the value to indicate whether the server will act as a Remote Desktop Services redirector.
Syntax
uint32 SetTSRedirectorMode(
[in] uint32 TSRedirValue
);
Parameters
-
TSRedirValue [in]
-
Type: uint32
Specifies if the server will act as a Remote Desktop Services redirector. This can be one of the following values.
-
0
-
The server will act as a Remote Desktop Services redirector.
-
1
-
The server will not act as a Remote Desktop Services redirector.
Return value
Type: uint32
Returns 0 on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values. The method returns an error if the setting is under group policy control.
Remarks
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 R2 |
End of client support |
None supported |
End of server support |
Windows Server 2008 R2 |
Namespace |
Root\CIMv2\TerminalServices |
MOF |
|
DLL |
|