SetDisableForcibleLogoff method of the Win32_TerminalServiceSetting class

This method is not supported.

Windows Vista and Windows Server 2008: Enables or disables whether an administrator logged onto the console can be forcibly logged off.

Syntax

uint32 SetDisableForcibleLogoff(
  [in] uint32 DisableForcibleLogoff
);

Parameters

DisableForcibleLogoff [in]

Flag disabling or enabling the DisableForcibleLogoff property, which determines whether an administrator that is logged on to the console can be forcibly logged off.

0

Disable the property. The connected administrator can be forcibly logged off.

1

Enable the property. The connected administrator cannot be forcibly logged off.

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.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
End of client support
Windows Vista
End of server support
Windows Server 2008
Namespace
Root\CIMv2\TerminalServices
MOF
TSCfgWmi.mof
DLL
TSCfgWmi.dll

See also

Win32_TerminalServiceSetting