Microsoft Operations Manager

ForceLogoff Method

The ForceLogoffmethod forces the current user to be logged out of Windows NT.

[VBScript] SystemManager.ForceLogoff()

Parameters

None

Return Value

Boolean

Examples

The following example shows how to force the currently logged-on user to log out.

[VBScript] 
Dim objSystemManager, blnOK

Set objSystemManager = CreateObject("OpScrUtil.SystemManager")

blnOK = objSystemManager.ForceLogoff()

Set objSystemManager = Nothing

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

SystemManager Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.