I do not think it is possible, at least doing it the way you are as there is
usually overlap between the SV_TYPE_WORKSTATION and SV_TYPE_SERVER flags.
You could get the differences in output between the two and all unique ones
with the SV_TYPE_WORKSTATION should be workstations, though that might mean
you will miss a few.......

Nikko

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Conor Lillis
Sent: Monday, January 07, 2002 9:55 AM
To: Perl-Win32-Admin (E-mail)
Subject: Win32::NetAdmin::GetServers


Hi all,
I am looking for a method to list all PCs on my network / domain (either
will do) that are ONLY running NT workstation. Is this possible ?
I have tried using the following, but it returns servers aswell, which is
not great as I am feeding it into a remote rebooting routine....

Win32::NetAdmin::GetServers($pdc, $domain, SV_TYPE_WORKSTATION, \@servers);


Any help appreciated...


regards,

Conor

-------------------------------
Conor Lillis
-------------------------------
NT Administrator,
Davy Stockbrokers,
49 Dawson St.,
Dublin 2.

Direct +353-1-614-9013
Switch: +353 1 679 7788
Fax +353-1-6712704
mailto:[EMAIL PROTECTED]
-------------------------------



The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised.if you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it is prohibited and may be unlawful. Please note that any
views, opinions or advice contained in this email are those of the sending
individual and not necessarily those of the firm. It is possible for data
transmitted by e-mail to be deliberately or accidentally corrupted or
intercepted. For this reason, where the communication is by e-mail, J&E Davy
does not accept any responsibility for any breach of confidence which may
arise from the use of this medium. If you have received this e-mail in error
please notify us immediately at mailto:[EMAIL PROTECTED] and delete this
e-mail from your system.

_______________________________________________
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