win32ts.WTSDisconnectSession
WTSDisconnectSession(Server, SessionId, Wait)
Disconnects a session without logging it off
Parameters
Server : PyHANDLE
Handle to a terminal serverSessionId : int
Terminal services session id as returned by win32ts::WTSEnumerateSessionsWait : boolean
Indicates whether operation should be performed asynchronously