strange thing found...
i use hm7.78
i use : windows 2008
i test INACTIVE Terminal Service users
(with option : preformace counter
test line : \\127.0.0.1\Terminal Services\Inactive Sessions
these test is on a active client (active agent)
the strange thing is that there are ALLWAYS 2 inactive users even when NOBODY is logged on to this machine
is this a bug ?
Allways 2 NOT active users
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: nope
Cannot explain this. "Performance Counter" test method utilizes Windows Performance Counters engine, that is not pretty reliable. Looks like something wrong on this machine. You may start standard Windows "Performance" applet and try to check Terminal Services\Inactive Sessions counter there.megasound wrote:i looked at terminal service manager i see NOBODY connected and NOBODY lost his connection...so NOTHING is there
something is NOT right here
You may try WMI test methiod with the following query:megasound wrote:can i make some test which display the current not active sessions/users ???
Code: Select all
select InactiveSessions from Win32_PerfFormattedData_TermService_TerminalServices
Max
ALLMOST
thanks for the quick reply
when i run this i get "invalid class" (reminder its 2008 machine)
so thats not good
settings from test :
hostname____________localhost
name space__________root\cimv2 (i also tried root\WMI same result)
query_______________select InactiveSessions from Win32_PerfFormattedData_TermService_TerminalServices
sorry but this not working
what am i doing wrong ???
m
when i run this i get "invalid class" (reminder its 2008 machine)
so thats not good
settings from test :
hostname____________localhost
name space__________root\cimv2 (i also tried root\WMI same result)
query_______________select InactiveSessions from Win32_PerfFormattedData_TermService_TerminalServices
sorry but this not working
what am i doing wrong ???
m
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Looks like you do everything properly. According to the Microsoft, Win32_PerfFormattedData_TermService_TerminalServices class should be present on Windows 2008 ( http://msdn.microsoft.com/en-us/library/aa394296.aspx ), but it is not. Probably, some additional WMI provider should be registered.
Regarding number of inactive sessions, I think, there always should be at least one session on Windows 2008, because special session for services is created starting from Vista/Server 2008. You may play with Win32_PerfFormattedData_TermService_TerminalServicesSession class, that is available on Windows 2008. It does not provide information about type of session (active or inactive), however it provides other usefull information about each terminal session.
Regards,
Max
Regarding number of inactive sessions, I think, there always should be at least one session on Windows 2008, because special session for services is created starting from Vista/Server 2008. You may play with Win32_PerfFormattedData_TermService_TerminalServicesSession class, that is available on Windows 2008. It does not provide information about type of session (active or inactive), however it provides other usefull information about each terminal session.
Regards,
Max