• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 565
  • Last Modified:

How to count or know the number of people / connected session to the DC ?

Hi,

I'd like to know if it is possible to get the number of user or session connected to the WIndows Server 2008 domain controller if possible ?

Thanks.
0
Senior IT System Engineer
Asked:
Senior IT System Engineer
4 Solutions
 
lciprianionutCommented:
Hi, You can start with this link: http://technet.microsoft.com/en-us/library/dd736504(WS.10).aspx
Basically you need to take the data from some performance counters with Get-Counter (only in v2) or Get-WmiObject (v1 & v2).
What you want to query is up to your needs.
0
 
fatnasa2010Commented:
Get-WMIObject Win32_PerfFormattedData_TermService_TerminalServices -ComputerName computer_name |select *se*


replace computer_name with the DC name
Get-WMIObject Win32_PerfFormattedData_TermService_TerminalServices -ComputerName computer_name |select *se*

Open in new window

0
 
Sushant GulatiConsultantCommented:
The best & easiest command. That's what I prefer to use...

http://a2alpha.webnode.com/news/remote-desktop-session-commands-qwinsta-and-rwinsta/

C:\>qwinsta /?
Display information about Terminal Sessions.

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

  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 Terminal Services counters information.

Good Luck..!!
~SG~
0
 
James HaywoodCommented:
You can use the Remote Desktop Services Manager (2008). This gives you a list of all sessions and the ability to disconnect them
0

Featured Post

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now