I'm not sure, but it might work if you did this:

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

-----Original Message-----
From: Conor Lillis [mailto:[EMAIL PROTECTED]]
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


--------------------------------------------------------------------------------
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

Reply via email to