I am working on a script that pulls some system information that we need on hand prior to an upgrade. Part of that information is a list of all the shares on the server. Easy enough to get with "net share," especially since this shows hidden shares as well as regular shares. I looked at some samples in Win32::Netresource, and it seemed to pretty good except for two things: 1) it did not seem to show me the path to the directory being shared (just the displayed share name) and 2) did not show hidden shares (or even the default admin shares). Is there something I might be missing? Is there another module to possibly use to get the info I need? The script I'm playing with is the example in the Win32::Netresource documentation for enumerating resources on a particular host. I don't want to spend a lot of time on this, just want something quick and dirty. If I can't find something quickly, I'm going to resort to parsing out the "net share" command.

Thanks


In reply to Listing Windows 2000 Shares by nimdokk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.