http://www.perlmonks.org?node_id=1224890


in reply to Identifying Windows file share names

maybe
use IPC::Run3 qw(run3); run3 ["NET","VIEW","\\\\servername","/all"], undef, \$stdout; die $? if $?; print "Output:\n$stdout\neof\n";
untested

Replies are listed 'Best First'.
Re^2: Identifying Windows file share names
by Anonymous Monk on Oct 29, 2018 at 22:28 UTC
    I don't think that will get the volumes per se, just the named shares.
      volumes? show me where the OP said something about volumes. OP said

      I'm looking for a method where I can ask each server for it's top level share names.