Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

Why TotalSessions is 3 when I have only two users logined?

$
0
0

Hi,

I'm using the following scripts to count how many users logged on through TermService, but I got a "3", that's weird, as I only have one user logged on locally, and another through terminal service, 

The users tab in taskmgr shows exactly two users. What's wrong with it?

Set objTermServ = GetObject ("winmgmts:{impersonationLevel=impersonate}!Win32_Service='TermService'")

MsgBox objTermServ.TotalSessions





Viewing all articles
Browse latest Browse all 12072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>