RestoreDefaults method of the Win32_TSPermissionsSetting class

The RestoreDefaults method restores the default permission set values for the terminal.

Syntax

uint32 RestoreDefaults();

Parameters

This method has no parameters.

Return value

Returns Success on success, otherwise Failure.

Remarks

Default permissions are the following:

  • The Administrators, System, and Remote Desktop Help Assistant accounts have all Remote Desktop Services Permissions.
  • The Remote Desktop Users account has Logon, Connect, Query Information, and Send Message permission.
  • The Local Service and Network Service accounts have Query Information, and Send Message permission.

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
Header
Netfw.h
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

See also

Win32_TSPermissionsSetting