Jump to content

Check terminal server mode on Longhorn 2008.


Recommended Posts

Guest amitmane82@gmail.com
Posted

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

  • Replies 3
  • Created
  • Last Reply
Guest Helge Klein
Posted

Re: Check terminal server mode on Longhorn 2008.

 

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

Guest amitmane82@gmail.com
Posted

Re: Check terminal server mode on Longhorn 2008.

 

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

Guest Helge Klein
Posted

Re: Check terminal server mode on Longhorn 2008.

 

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


×
×
  • Create New...