SetPolicyPropertyName method of the Win32_TerminalServiceSetting class

The SetPolicyPropertyName method sets the DeleteTempFolders, UseTempFolders or Help property for the class.

Syntax


uint32 SetPolicyPropertyName(
  [in]  string PropertyName,
  [in]  boolean Value
);

Parameters

PropertyName [in]

Specifies the policy property that the method is setting.

ValueMeaning
DeleteTempFolders

The method is setting the DeleteTempFolders property.

UseTempFolders

The method is setting the UseTempFolders property.

Help

The method is setting the Help property.

Note  Help is supported only in Windows XP, Windows XP with SP1, and Windows Server 2003, and not in Windows XP with SP2, Windows Server 2003 with SP1 or later releases.

 

Value [in]

Value that indicates whether to enable or disable the property specified by the PropertyName parameter.

ValueMeaning
0

Disable the property.

1

Enable the property.

 

Return value

Returns Success 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

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2\TerminalServices on Windows Vista and Windows Server 2008, \root\CIMV2 on Windows XP and Windows Server 2003

MOF

Tscfgwmi.mof

DLL

Tscfgwmi.dll

See also

Win32_TerminalServiceSetting

 

 

Show:
© 2014 Microsoft