Guest dggcoop Posted July 17, 2007 Posted July 17, 2007 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?
Guest Pegasus \(MVP\) Posted July 18, 2007 Posted July 18, 2007 Re: Remotely Enumerate Network Shares / Permissions "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 (http://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.
Recommended Posts