PDA

View Full Version : How to check if RDP is Enabled?


Polaris
February 27th 05, 07:42 PM
Hi:

Is there an API to check if the user has "Remote Desktop" (Control Panel -
Remote) enabled?

Did not find any SDK APIs for this, and I searched whole registry but failed
to find any registry value is read about "Remote Desktop" Setting.

Is there some other development package I'm missing now (I have .NET Dev
environment).

Thanks In Advance!

Polaris

Roger Abell
February 27th 05, 11:48 PM
Check to see if the Terminal Services service is running.

--
Roger Abell
Microsoft MVP (Windows Security)
MCSE (W2k3,W2k,Nt4) MCDBA
"Polaris" > wrote in message
...
> Hi:
>
> Is there an API to check if the user has "Remote Desktop" (Control Panel -
> Remote) enabled?
>
> Did not find any SDK APIs for this, and I searched whole registry but
failed
> to find any registry value is read about "Remote Desktop" Setting.
>
> Is there some other development package I'm missing now (I have .NET Dev
> environment).
>
> Thanks In Advance!
>
> Polaris
>
>

Polaris
February 28th 05, 12:25 AM
Thanks for your info, but it seems not working: I did not enable the Remote
Desktop but the "Terminal Services" is still running (Service Status is
"Started").

Polaris

"Roger Abell" > wrote in message
...
> Check to see if the Terminal Services service is running.
>
> --
> Roger Abell
> Microsoft MVP (Windows Security)
> MCSE (W2k3,W2k,Nt4) MCDBA
> "Polaris" > wrote in message
> ...
>> Hi:
>>
>> Is there an API to check if the user has "Remote Desktop" (Control
>> Panel -
>> Remote) enabled?
>>
>> Did not find any SDK APIs for this, and I searched whole registry but
> failed
>> to find any registry value is read about "Remote Desktop" Setting.
>>
>> Is there some other development package I'm missing now (I have .NET Dev
>> environment).
>>
>> Thanks In Advance!
>>
>> Polaris
>>
>>
>
>

Lanwench [MVP - Exchange]
February 28th 05, 03:23 AM
Polaris wrote:
> Thanks for your info, but it seems not working: I did not enable the
> Remote Desktop but the "Terminal Services" is still running (Service
> Status is "Started").
>
> Polaris

telnet machineNameOrIP 3389 <enter>

>
> "Roger Abell" > wrote in message
> ...
>> Check to see if the Terminal Services service is running.
>>
>> --
>> Roger Abell
>> Microsoft MVP (Windows Security)
>> MCSE (W2k3,W2k,Nt4) MCDBA
>> "Polaris" > wrote in message
>> ...
>>> Hi:
>>>
>>> Is there an API to check if the user has "Remote Desktop" (Control
>>> Panel -
>>> Remote) enabled?
>>>
>>> Did not find any SDK APIs for this, and I searched whole registry
>>> but failed to find any registry value is read about "Remote
>>> Desktop" Setting.
>>>
>>> Is there some other development package I'm missing now (I have
>>> .NET Dev environment).
>>>
>>> Thanks In Advance!
>>>
>>> Polaris

Polaris
February 28th 05, 04:39 AM
That seems working. Thanks for your help.

Polaris

"Lanwench [MVP - Exchange]"
hoo.com> wrote in message
...
> Polaris wrote:
>> Thanks for your info, but it seems not working: I did not enable the
>> Remote Desktop but the "Terminal Services" is still running (Service
>> Status is "Started").
>>
>> Polaris
>
> telnet machineNameOrIP 3389 <enter>
>
>>
>> "Roger Abell" > wrote in message
>> ...
>>> Check to see if the Terminal Services service is running.
>>>
>>> --
>>> Roger Abell
>>> Microsoft MVP (Windows Security)
>>> MCSE (W2k3,W2k,Nt4) MCDBA
>>> "Polaris" > wrote in message
>>> ...
>>>> Hi:
>>>>
>>>> Is there an API to check if the user has "Remote Desktop" (Control
>>>> Panel -
>>>> Remote) enabled?
>>>>
>>>> Did not find any SDK APIs for this, and I searched whole registry
>>>> but failed to find any registry value is read about "Remote
>>>> Desktop" Setting.
>>>>
>>>> Is there some other development package I'm missing now (I have
>>>> .NET Dev environment).
>>>>
>>>> Thanks In Advance!
>>>>
>>>> Polaris
>
>

Polaris
February 28th 05, 06:41 AM
Just found out the registry setting for the RDP flag:

System\\CurrentControlSet\\Control\\Terminal Server\\fDenyTSConnections

Polaris


"Polaris" > wrote in message
...
> Hi:
>
> Is there an API to check if the user has "Remote Desktop" (Control Panel -
> Remote) enabled?
>
> Did not find any SDK APIs for this, and I searched whole registry but
> failed to find any registry value is read about "Remote Desktop" Setting.
>
> Is there some other development package I'm missing now (I have .NET Dev
> environment).
>
> Thanks In Advance!
>
> Polaris
>

Lanwench [MVP - Exchange]
March 1st 05, 01:37 AM
Polaris wrote:
> Just found out the registry setting for the RDP flag:
>
> System\\CurrentControlSet\\Control\\Terminal
> Server\\fDenyTSConnections

That's easier than a telnet command?

>
> Polaris
>
>
> "Polaris" > wrote in message
> ...
>> Hi:
>>
>> Is there an API to check if the user has "Remote Desktop" (Control
>> Panel - Remote) enabled?
>>
>> Did not find any SDK APIs for this, and I searched whole registry but
>> failed to find any registry value is read about "Remote Desktop"
>> Setting.
>>
>> Is there some other development package I'm missing now (I have .NET
>> Dev environment).
>>
>> Thanks In Advance!
>>
>> Polaris

Google