win32ts.WTSQueryUserToken
PyHANDLE = WTSQueryUserToken(SessionId)
Retrieves the access token for a session
Parameters
SessionId : int
Terminal services session idComments
This function is intended only for use by trusted processes that have SE_TCB_PRIVILEGE enabled