SELECT TotalSessions FROM Win32_TerminalService
This count is always off by 1. If there is 1 user visible on the server, the count shows 2.
This is from the MSDN
TotalSessions
Data type: uint32
Access type: Read-only
The total number of sessions on the current server. This includes both connected and disconnected sessions.
I know I can just -1 from the total but is that really the correct way to handle this?
Why is it seeing the additional +1 user?