Jump to content

Recommended Posts

Posted

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
}


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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