Link to home
Start Free TrialLog in
Avatar of SAM2009
SAM2009Flag for Canada

asked on

Is there way to get a list of users who have logon or connect on a Windows 2008 server?

Hi,

Is there way to get a list of users who have logon or connect on a Windows 2008 server? I just want to see who still use that server.

Thanks
Avatar of Sekar Chinnakannu
Sekar Chinnakannu
Flag of Singapore image

You can use query session command to get the session details, Use taskbar yo ucan view the connected users.

C:\WINDOWS\system32>query session /?
Display information about Remote Desktop Services sessions.

QUERY SESSION [sessionname | username | sessionid]
              [/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER] [/VM]

  sessionname         Identifies the session named sessionname.
  username            Identifies the session with user username.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server to be queried (default is current).
  /MODE               Display current line settings.
  /FLOW               Display current flow control settings.
  /CONNECT            Display current connect settings.
  /COUNTER            Display current Remote Desktop Services counters information.
  /VM                 Display information about sessions within virtual machines.
Avatar of SAM2009

ASKER

Is this give me for example also persons who have logon before and not just  in real-time?
Is this give me for example also persons who have logon before and not just  in real-time?
No. Enable auditing and pull all the logon events to get that
Avatar of SAM2009

ASKER

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of austin minor
austin minor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SAM2009

ASKER

Ya I think no have choice to go with enabling auditing.