Enable method of the Win32_Terminal class
The Enable method disables or enables the terminal.
Syntax
uint32 Enable(
[in] uint32 fEnableTerminal
);
Parameters
-
fEnableTerminal [in]
-
Flag that disables or enables the terminal.
-
0
-
The terminal is disabled.
-
1
-
The terminal is enabled.
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
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 |
|
DLL |
|