Somebody posted this information on this list before 

Value Meaning 
SV_TYPE_WORKSTATION             All workstations 
SV_TYPE_SERVER                  All servers 
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 servers 
SV_TYPE_NOVELL                  Novell servers 
SV_TYPE_DOMAIN_MEMBER           LAN Manager 2.x domain member 
SV_TYPE_LOCAL_LIST_ONLY         Servers maintained by the browser. See the
following Remarks section. 
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 




~~~~~~~~~~~~~~~~~~~~
Sibi John.
Systems Adminstrator.

~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject: Workgroup/Domain Members


Does someone know how to list hosts that are in a given
domain?  One of our domain names is the same as a work
group name.

Running the following appears to give a the name of a host
that is in either workgroup $Domain or domain $Domain.

   my $Type = SV_TYPE_ALL | SV_TYPE_WINDOWS | SV_TYPE_NT;

   if ( Win32::NetAdmin::GetServers( '',$Domain,$Type,\@List) ) {
      print "\nAt ".__LINE__." \$Domain=<$Domain>\n";

etc ...

Help/Advice would be appreciated.

Thanks,

Ken Stephani
Unicenter TNG, Intranet Support
Computer Sciences Corporation For BAE SYSTEMS
858-675-1974 (Office Phone)
858-232-6421 (Cellular Phone)

NOTE:

For AHD Reports/Queries, visit
webster -> organizations -> information technology ->
it operating committee information center ->
-> csr/problem report status

For BOS/RRS Reports/Queries, visit
webster -> organizations -> information technology ->
it operating committee information center ->
-> BackOfficeServices/RemoteResolutionServices

For Unicenter TNG/AMO/SDO Information/Status, visit
webster -> organizations -> information technology ->
computer services -> unicentertng



_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to