Windows NT Check terminal server mode on Longhorn 2008.

  • Thread starter Thread starter amitmane82@gmail.com
  • Start date Start date
A

amitmane82@gmail.com

Hi all,

I have written an application that will check whethet terminal server
is installed on machine and also cheks that whether terminal server is
in application mode. To check the application mode of terminal server
i check the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
\TSAppCompat

But now when i run my application on server 2008 (Longhorn) i
can't find this key.
Therefore my program fails to check terminal server and it's mode.

Can any one guide me how to check the terminal server is installed
or not and it's mode on longhorn.

Any help will be appriciated.


Thanks
Amit
 
You could use servermanagercmd.exe with the parameter "-query" to get
the list of roles installed on a server.

I hope this helps.

Helge

On 27 Aug., 16:06, amitman...@gmail.com wrote:
> Hi all,
>
> I have written an application that will check whethet terminal server
> is installed on machine and also cheks that whether terminal server is
> in application mode. To check the application mode of terminal server
> i check the following registry key:
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
> \TSAppCompat
>
> But now when i run my application on server 2008 (Longhorn) i
> can't find this key.
> Therefore my program fails to check terminal server and it's mode.
>
> Can any one guide me how to check the terminal server is installed
> or not and it's mode on longhorn.
>
> Any help will be appriciated.
>
> Thanks
> Amit
 
Hi Helge,

Thanks for your reply.

I tried your solution but it just gives me whether terminal server is
installed or not. But i want the mode of terminal server. Is there any
key to check the mode of Termina server.



Helge Klein wrote:
> You could use servermanagercmd.exe with the parameter "-query" to get
> the list of roles installed on a server.
>
> I hope this helps.
>
> Helge
>
> On 27 Aug., 16:06, amitman...@gmail.com wrote:
> > Hi all,
> >
> > I have written an application that will check whethet terminal server
> > is installed on machine and also cheks that whether terminal server is
> > in application mode. To check the application mode of terminal server
> > i check the following registry key:
> > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
> > \TSAppCompat
> >
> > But now when i run my application on server 2008 (Longhorn) i
> > can't find this key.
> > Therefore my program fails to check terminal server and it's mode.
> >
> > Can any one guide me how to check the terminal server is installed
> > or not and it's mode on longhorn.
> >
> > Any help will be appriciated.
> >
> > Thanks
> > Amit
 
This should work:

Check for "HKLM\System\CurrentControlSet\Control\Terminal Server
\fDenyTSConnections". If this is set to 0, Remote Desktop is enabled.
If the server role "Terminal Services -> Terminal Server" is also
installed then the system is in application server mode.

I hope this helps.

Helge

On 28 Aug., 08:10, amitman...@gmail.com wrote:
> Hi Helge,
>
> Thanks for your reply.
>
> I tried your solution but it just gives me whether terminal server is
> installed or not. But i want the mode of terminal server. Is there any
> key to check the mode of Termina server.
>
> Helge Klein wrote:
> > You could use servermanagercmd.exe with the parameter "-query" to get
> > the list of roles installed on a server.

>
> > I hope this helps.

>
> > Helge

>
> > On 27 Aug., 16:06, amitman...@gmail.com wrote:
> > > Hi all,

>
> > > I have written an application that will check whethet terminal server
> > > is installed on machine and also cheks that whether terminal server is
> > > in application mode. To check the application mode of terminal server
> > > i check the following registry key:
> > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
> > > \TSAppCompat

>
> > > But now when i run my application on server 2008 (Longhorn) i
> > > can't find this key.
> > > Therefore my program fails to check terminal server and it's mode.

>
> > > Can any one guide me how to check the terminal server is installed
> > > or not and it's mode on longhorn.

>
> > > Any help will be appriciated.

>
> > > Thanks
> > > Amit
 
Back
Top