I believe there is a SV_TYPE_WORKSTATION constant defined. I haven't used all of these, but theoretically you should be able to use any of the below values. (I got this from the Platform SDK)
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 -----Original Message----- From: Veeraraju_Mareddi [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 1:10 AM To: 'Greene, Adam S '; ''Shea, Linchi' '; [EMAIL PROTECTED] Subject: RE: Win32::NetAdmin::GetServers Dear All, Is there any Function in Win32::NetAdmin to get Only NT workstations. Thanks and Regards Rajuveera -----Original Message----- From: Greene, Adam S To: 'Shea, Linchi'; '[EMAIL PROTECTED]' Sent: 12/1/01 4:17 AM Subject: RE: Win32::NetAdmin::GetServers Use any utility or process to get a list of machines from your browse list and you will get different numbers every time. The machine accounts themselves are not OS specific - when you are getting a list of a particular OS type, you are relying on the browser. I use a process that gets all of the browsers and then queries each of them for a list of machines. I tend to get a better coverage that way. -----Original Message----- From: Shea, Linchi [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:33 AM To: '[EMAIL PROTECTED]' Subject: Win32::NetAdmin::GetServers If I run this for a domain with a large number of machines, I always get different number of servers in array @servers. For instance, I may get 582 machines in one run, while getting 712 in another run. Win32::NetAdmin::GetServers( '', $domain, SV_TYPE_NT, \@servers); Anybody knows why it should behave as such? I'm use ActiveState Perl build 522. Linchi ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
