bbbngowc Posted May 5, 2010 Posted May 5, 2010 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-WMIObjectWin32_PerfFormattedData_TermService_TerminalServices).TotalSessions"There are {0} users on {1}" -f $count,$Server}
gunsmokingman Posted May 5, 2010 Posted May 5, 2010 That looks like a Powershell script, so it extension should be .ps1 and not a .vbs
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now