bbbngowc Posted May 5, 2010 Share 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} Link to comment Share on other sites More sharing options...
gunsmokingman Posted May 5, 2010 Share Posted May 5, 2010 That looks like a Powershell script, so it extension should be .ps1 and not a .vbs Link to comment Share on other sites More sharing options...
gosh Posted May 5, 2010 Share Posted May 5, 2010 cscript <file>.vbs right? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now