win32net.NetSessionGetInfo

dict = NetSessionGetInfo(level, server , client , username )

Returns information for a network session from specified client

Parameters

level : int

Level of information requested, currently accepts 0, 1, 2, 10, and 502

server : string/PyUnicode

The name of the server on which to operate, None or blank assumes local machine

client : string/PyUnicode

Name of client computer

username : string/PyUnicode

User that established session

Return Value

Returns a dictionary representing a SESSION_INFO_* struct, depending on level specified