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