PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?UGFwaWxsYQ==?=
Guest
Posts: n/a
 
      21st Dec 2004
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
 
 
 
 
Mark-Allen Perry
Guest
Posts: n/a
 
      21st Dec 2004
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/default...;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" <(E-Mail Removed)> wrote in message news:68F2128F-0953-4E42-985E-(E-Mail Removed)...
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determine office version that is running on users machine Dale Fye Microsoft Access VBA Modules 6 2nd Dec 2008 06:36 PM
No Server Running - On a Windows Server 2003 Machine xx75vulcan Microsoft Frontpage 4 1st Jun 2006 12:11 AM
Determine when app is running on development machine? Ben Fidge Microsoft ASP .NET 2 6th Apr 2005 09:00 PM
How to determine if the Com server running on the remote machine? =?Utf-8?B?bWlrcw==?= Microsoft VC .NET 1 19th Mar 2004 06:06 PM
How to determine a running SQL Server Michael Schneider Microsoft ADO .NET 5 2nd Feb 2004 02:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:50 PM.