Hello!
How can i request Active Sessions number via WMI from RDGateway? So i found PowerShell Script which get numbers i need:
(Get-Counter @("\Terminal Service Gateway\Current connections") -ComputerName "127.0.0.1").CounterSamples.CookedValue
But is any change to make the same via simple WMI request?
I found some classes, but they not work, and i think i miss a little:
root\cimV2\TerminalServices
SELECT ConnectedResource FROM Win32_TSGatewayConnection
Any suggestions?
Thank you!