PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Terminal Server Applications How to determine if a machine is running a Windows server?

Reply

How to determine if a machine is running a Windows server?

 
Thread Tools Rate Thread
Old 21-12-2004, 12:13 PM   #1
=?Utf-8?B?UGFwaWxsYQ==?=
Guest
 
Posts: n/a
Default How to determine if a machine is running a Windows server?


Hi, I am writing an application that needs to determine if the machine is
running on is a Windows Server. I am using the API function NetServerGetInfo
with level 101 and looking for at least one of this flags to be present in
the sv101_type field:
- SV_TYPE_DOMAIN_CTRL, SV_TYPE_DOMAIN_BAKCTRL, SV_TYPE_SERVER_NT.

This is working generally but I have a w2k Server with Terminal server where
none of this flags is present. However, the SV_TYPE_TERMINALSERVER flag is
present. Must I consider this flag enough for determining that a machine is
running a windows server? Can this flag be present in a Windows workstation?

I have searched in the MSDN but I have not found further information about
this flags...Can anybody help me with this?

Thanks.

  Reply With Quote
Old 21-12-2004, 01:47 PM   #2
Mark-Allen Perry
Guest
 
Posts: n/a
Default Re: How to determine if a machine is running a Windows server?

It will NOT be found on a workstation type machine. Only servers have the ability to run Terminal Services.

--

Always try the MS KB first before posting.
MS KB: http://support.microsoft.com/defaul...h;EN-US;KBHOWTO
And the answer could have already been posted, so try searching this and other newsgroups first.
----
Mark-Allen Perry
ALPHA Systems
Marly, Switzerland
mark-allen_AT_mvps_DOT_org

"Papilla" <Papilla@discussions.microsoft.com> wrote in message news:68F2128F-0953-4E42-985E-204ED93D6011@microsoft.com...
Hi, I am writing an application that needs to determine if the machine is
running on is a Windows Server. I am using the API function NetServerGetInfo
with level 101 and looking for at least one of this flags to be present in
the sv101_type field:
- SV_TYPE_DOMAIN_CTRL, SV_TYPE_DOMAIN_BAKCTRL, SV_TYPE_SERVER_NT.

This is working generally but I have a w2k Server with Terminal server where
none of this flags is present. However, the SV_TYPE_TERMINALSERVER flag is
present. Must I consider this flag enough for determining that a machine is
running a windows server? Can this flag be present in a Windows workstation?

I have searched in the MSDN but I have not found further information about
this flags...Can anybody help me with this?

Thanks.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off