http://qs321.pair.com?node_id=238808


in reply to Re: Viewing network shares
in thread Viewing network shares

As I wrote in the initial description, I did this to check a group of computers, not all "visible" computers on the network.

I wrote this little thing to save me from manually having to browse the computers for shares. Learning about the topic and writing it took longer than it would have taken to manually check the computers. But next time I want to check some computers it's just a matter of seconds to alter and run it. The ARGV bit also makes it possible to simply run

sharescheck.pl computer1 computer7 server_A laptopBOB
Does anyone really use the LMHOSTS file? Maybe for small internal networks with few (Windows) computers, but otherwise I think it's better managed by a Domain Controller (and with DHCP/WINS). It would be better to ask the "Windows network" about its resources than to check a local file whose validity you can't be sure of.