SetTimeZoneRedirection method of the Win32_TerminalServiceSetting class

The SetTimeZoneRedirection method sets the TimeZoneRedirection property, which allows the client computer to redirect its time zone settings to the Remote Desktop Services session.

Syntax

uint32 SetTimeZoneRedirection(
  [in] uint32 TimeZoneRedirection
);

Parameters

TimeZoneRedirection [in]

The new value for the TimeZoneRedirection property.

0

Disables the TimeZoneRedirection property. No time zone redirection occurs.

1

Enables the TimeZoneRedirection property. The client's time zone is redirected to the session's time zone.

Return value

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.

Remarks

By default, the time zone for the Remote Desktop Services session is the same as the time zone for the Remote Desktop Session Host (RD Session Host) server. Client computers cannot redirect time zone information.

If time zone redirection is disabled, new sessions inherit the server time zone. When a session reconnects, the session retains the time zone it had prior to disconnecting.

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
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

See also

Win32_TerminalServiceSetting