Oh, in that case, you can use either Win32::NetAdmin::GetServers() or Win32::AdminMisc::GetMachines(). Personally, I would do something like this:
################### use strict; use warnings; use Net::Ping; use Win32::AdminMisc; my $p = Net::Ping->new('icmp',2); my @clients = (); Win32::AdminMisc::GetMachines('',UF_WORKSTATION_TRUST_ACCOUNT|UF_SERVER_TRUS T_ACCOUNT,\@clients); foreach(@clients){ if($p->ping($_){ do something... }else{ open(LOG,">>missed.log") || die "Couldn't open the log file for writing! $!"; print LOG $_."\n"; } } ################# The advantage of using this versus NetAdmin is that this will look at the domain controller and give you a list of the computers on the domain, and you can go from there, so you know what machines you missed. GetServers from NetAdmin basically just looks at the Browse list, which has its own advantages, for example if you want to pick up Win9x machines as well. -----Original Message----- From: Mark Richmond [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:57 PM To: Timothy Johnson; [EMAIL PROTECTED] Subject: RE: How to find all active windows hosts on a network > > > Are you saying that you want to get all Windows hosts on the > network, or are you specifically trying to get the number of hosts that have > Windows 2000 installed? Good question never thought about. In this case I don't care what OS is running I just need to find them all and copies files to them. -mark > > -----Original Message----- > From: Mark Richmond [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 2:31 PM > To: Mark Richmond; [EMAIL PROTECTED] > Subject: RE: How to find all active windows hosts on a network > > > > As a follow up: Win32::NodeName() produces the local NodeName I need > a list of all the nodes. The hunt continues > > > -----Original Message----- > > From: Mark Richmond > > Sent: Monday, September 09, 2002 5:10 PM > > To: [EMAIL PROTECTED] > > Subject: How to find all active windows hosts on a network > > > > > > > > Hello all: > > > > I need to produce a list Windows2k hosts on our network. It > > would seem that I could obtain the information > > from the domain controllers I looked at Win32::NetResource > > but can't figure out how to get the node name. > > Any thoughts ? > > > > -thanks > > -mark > > > > - > > Mark Richmond <[EMAIL PROTECTED]> > > Airvana Inc. > > 25 Industrial Ave. > > Chelmsford, MA 01824 > > Voice: 978-250-2669 > > Cell: 978-815-4298 > > Fax: 978-250-3910 > > > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]