Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 25525

RD Gateway Active Sessions

$
0
0

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!


Viewing all articles
Browse latest Browse all 25525

Trending Articles



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