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

Mostafa Salaheldien 61 Reputation points
2021-10-14T07:21:27.313+00:00

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

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,579 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,741 Reputation points
    2021-10-14T08:05:39.127+00:00

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

    or WMI :
    Win32_TerminalServiceSetting
    AllowTSConnections

    0 comments No comments