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

SAM2009
SAM2009 used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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.

Author

Commented:
Is this give me for example also persons who have logon before and not just  in real-time?
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
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
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Thanks!
query user /server:$SERVER

this will return a list of logged on users.

To check who have logon before you must have auditing enabled, here is an article which define the process to audit the successful or failed logon and logoff attempts in the network using the audit policies.

Author

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial