Jump to content

Terminal Users Count


Recommended Posts

Hi All,

I have 5 Windows 2003 terminal servers in a NLB Cluster. I'm looking for a way to know how many users are currently logged on the entire cluster without having to manually count the number of users on each server. Does anyone have a solution to this?

I found this VB script online but I'm not a VB expert so can't get this to work. Please help!

foreach ($server in (Get-Content $file))
{
$count = (Get-WMIObject
Win32_PerfFormattedData_TermService_TerminalServices).TotalSessions
"There are {0} users on {1}" -f $count,$Server
}

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...