Version: 1
restore

Contents

Method

GetLoggedOnUsers

ModuleUsers
LibraryCore
Action

List the currently logged-on user sessions.

Parameters(None)
Return values

For each session:

    • Account (string): User name.
    • SessionId (string): Session ID.
    • SessionName (string): Session Name.
    • LogonTime (string): Logon time of the session
    • SessionState (string): The session state as defined by the WTS_CONNECTSTATE_CLASS enum. MS Windows hosts only.
    • RemoteSession (boolean): Whether or not the session is a remote session
    • RemoteIp (string): IP address of the client. Not available on Solaris.
    • RemoteName (string): Hostname of the client. On MacOS only the IP address is available.
Example
Users.GetLoggedOnUsers();
Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris Sparc
  • Android
Notes