Hello Conor,

You fell into the same trap I found.

This is a "bug" in the documentation.   You read the option and thought 
"Ahh workstations."  However, this option says to list anything that is 
running the workstation service!

There does not seem to be an option to list only NT Workstations.  However, 
if you use the same option and and then use SV_TYPE_SERVER_NT, which lists 
servers, you can at least remove these entries from your list...

Mathew

At 05:55 PM 1/7/2002 +0000, Conor Lillis wrote:
>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