Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Network Neighborhood and LWP::UserAgent list directory

by rchiav (Deacon)
on Aug 31, 2001 at 04:56 UTC ( #109256=note: print w/replies, xml ) Need Help??


in reply to Network Neighborhood and LWP::UserAgent list directory

Sorry.. I originally posted the answer to the wrong question. This will do the trick for you. It uses ADSI.. but only works on NT and 2000 machines.
#!/usr/bin/perl -w use strict; use Win32::OLE qw(in); my $i; my $comp = Win32::OLE->GetObject("WinNT://computername/LanmanServer"); foreach $i (in $comp) { print $i->{name}, "\n"; }
Hope this helps..
Rich

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://109256]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-09-20 09:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?