Avatar of SAM2009
SAM2009
Flag 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
Windows Server 2008Active DirectoryScripting Languages

Avatar of undefined
Last Comment
SAM2009

8/22/2022 - Mon
Sekar Chinnakannu

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.
SAM2009

ASKER
Is this give me for example also persons who have logon before and not just  in real-time?
Shaun Vermaak

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
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SAM2009

ASKER
Thanks!
ASKER CERTIFIED SOLUTION
austin minor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SAM2009

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