Remotely Enumerate Network Shares / Permissions

D

dggcoop

I am trying to find an easy way (script) to gather the following information
from a lot of servers (mostly 2003) REMOTELY :
-Network Shares
-Share Permissions
-What Users/Groups are part of the Administrators group on the server

I know I can do this manually with the Shares MMC snap-in, but I would
really like to be able to run a script that outputs this information into an
file that is easily imported into Excel.

Any ideas?
 
P

Pegasus \(MVP\)

"dggcoop" <dggcoop@discussions.microsoft.com> wrote in message
news:DBE64D8C-AFF9-4ED3-8DC0-3D49491A6CDB@microsoft.com...
>I am trying to find an easy way (script) to gather the following
>information
> from a lot of servers (mostly 2003) REMOTELY :
> -Network Shares
> -Share Permissions
> -What Users/Groups are part of the Administrators group on the server
>
> I know I can do this manually with the Shares MMC snap-in, but I would
> really like to be able to run a script that outputs this information into
> an
> file that is easily imported into Excel.
>
> Any ideas?


To enumerate network shares you could use the command "net share".
To look at share permissions you could use the command "net share
sharename".
To examine the Administrator group you could use the command "net group
administrators".
To run these command on a remote machine you could use psexec.exe
(www.sysinternals.com).

Unfortunately the output generated by some of these commands
does not lend itself easily to automatic processing. If this is what
you had in mind then I recommend you repost your question in
a scripting newsgroup.
 
Back
Top Bottom