Re: Remotely Enumerate Network Shares / Permissions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"dggcoop" <dggcoop@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DBE64D8C-AFF9-4ED3-8DC0-3D49491A6CDB@xxxxxxxxxxxxxxxx
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.


.



Relevant Pages

  • Re: ftp on IIS 6.0 w2k3
    ... Try a batch file that writes a simple message out to a log file, ... to allow null session shares so that it can. ... Software Design Engineer, Internet Information Server (FTP) ... > command runs from a dos shell. ...
    (microsoft.public.inetserver.iis)
  • Re: [SLE] Is there a SuSE rpm (source) for stable kernel 2.6.10
    ... >>I am running SuSE 9.2 Pro on my home and office machines. ... >>I need to mount shares from a Windows 2003 Server running active ... the shares through the mount points, although the command line and non ... Midnight Commander and command line access the shares fine. ...
    (SuSE)
  • Re: Filesharing Problem - Connect password.
    ... I did try the net use command to access a share and received the error message: "Not enough server storage is available to process this command." ... So, I thought maybe I've created too many shares, and tried deleting a few on the computer that is sharing. ... Not sure that is working, as the shared folders do not seem to disappear from the exploded networking tree, even if I try to delete them. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Unclear browstat Output
    ... I was able to map to the shares via the command line and copy files in both ... directions using both the command line and Windows Explorer. ... I can use the other XP machines can see the share on ...
    (microsoft.public.windowsxp.network_web)
  • Re: default shares
    ... The default shares are accessible by members ... This group on a domain controller ... > users are domain admins, that they understand that they must use complex ... > and administrators group, and may want to consider allowing domain admins ...
    (microsoft.public.windows.server.security)