Solved

Perl and Win32::NetAdmin::GetServers

Posted on 2002-07-04
1
354 Views
Last Modified: 2008-02-01
I need to use the following function to query servers and clients in a domain (Microsoft):
GetServers(server, domain, flags, serverRef)

I can't find the possible value of flags. Where can I find it ?
Thank you.

0
Comment
Question by:StefaniaO
1 Comment
 
LVL 25

Accepted Solution

by:
clockwatcher earned 50 total points
ID: 7130257
They're the SV_TYPE_ constants.  See the SERVER_INFO_101 structure for a list.

  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/ntlmapi3_8naq.asp

Copy and pasted from the above:

Value Meaning
SV_TYPE_WORKSTATION A LAN Manager workstation
SV_TYPE_SERVER A LAN Manager server
SV_TYPE_SQLSERVER Any server running with Microsoft SQL Server
SV_TYPE_DOMAIN_CTRL Primary domain controller
SV_TYPE_DOMAIN_BAKCTRL Backup domain controller
SV_TYPE_TIME_SOURCE Server running the Timesource service
SV_TYPE_AFP Apple File Protocol server
SV_TYPE_NOVELL Novell server
SV_TYPE_DOMAIN_MEMBER LAN Manager 2.x domain member
SV_TYPE_LOCAL_LIST_ONLY Servers maintained by the browser
SV_TYPE_PRINTQ_SERVER Server sharing print queue
SV_TYPE_DIALIN_SERVER Server running dial-in service
SV_TYPE_XENIX_SERVER Xenix server
SV_TYPE_SERVER_MFPN Microsoft File and Print for NetWare
SV_TYPE_NT Windows NT/Windows 2000/Windows XP workstation or server
SV_TYPE_WFW Server running Windows for Workgroups
SV_TYPE_SERVER_NT Windows NT/Windows 2000 server that is not a domain controller
SV_TYPE_POTENTIAL_BROWSER Server that can run the browser service
SV_TYPE_BACKUP_BROWSER  Server running a browser service as backup
SV_TYPE_MASTER_BROWSER Server running the master browser service
SV_TYPE_DOMAIN_MASTER Server running the domain master browser
SV_TYPE_DOMAIN_ENUM Primary domain  
SV_TYPE_WINDOWS Windows 95 or later
SV_TYPE_ALL All servers
SV_TYPE_TERMINALSERVER Terminal Server
SV_TYPE_CLUSTER_NT Server clusters available in the domain
SV_TYPE_CLUSTER_VS_NT Windows XP: Cluster virtual servers available in the domain
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now