Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
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 |
|
| DLL |
|