question

MostafaSalaheldien-7490 avatar image
0 Votes"
MostafaSalaheldien-7490 asked Castorix31 answered

How to get the Status of Remote Desktop on my pc allow or not Using VB.net

Hello everyone,

I would like some help I Need to check on my Workstation If the remote desktop is allowed or not,
if it not I need to allow it through my code .

Thanks in advance

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered

With registry :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
fDenyTSConnection

or WMI :
Win32_TerminalServiceSetting
AllowTSConnections



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.