通过代码获取最大rdp会话数 [英] Get Maximum rdp sessions number through code
本文介绍了通过代码获取最大rdp会话数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过代码远程获取允许的连接的rdp数量?
我在网上搜索,但找不到任何解决方案.我尝试搜索一些regitry键,该键可能容纳允许的最大连接数-但终端服务器没有这样的键...
有任何想法吗?
谢谢,Tomer
Hi,
How can I retreive the rdp number of allowed connections remotely (through code)?
I searched the web but couldn''t find any solution. I tried searching for some regitry key , which might hold the max number of connections allowed - but Terminal Server doesn''t have such key...
Any Ideas?
Thanks, Tomer
推荐答案
您可以尝试使用WMI.在CP上有很多关于如何使用它的文章.只需使用页面顶部的文章|搜索菜单,然后搜索"wmi中的所有内容".
特别是 Win32_TSNetworkAdapterSetting [
You could try using WMI. There is a good series of articles on using it here on CP. Just use the Articles|Search menu at the top of the page and search for ''Everything in wmi''.
In particular the Win32_TSNetworkAdapterSetting[^] Class has thePolicySourceMaximumConnections
member.
这篇关于通过代码获取最大rdp会话数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文