RE: VBScript to audit shares and share permissions

From: Ed Whitesell (edw_at_airpathwireless.com)
Date: 09/27/04

  • Next message: Thor: "Re: Hardening Desktop"
    Date: Mon, 27 Sep 2004 10:46:59 -0400
    To: <focus-ms@securityfocus.com>
    
    

    http://www.sysinternals.com/ntw2k/utilities.shtml

    ShareEnum v1.51

    It will 'scan' an entire domain (providing you have privileges) and
    report shares on each machine.

    -----------------------------------------------------------------------
    Ed Whitesell
    Network Engineer
    Airpath Wireless, Inc.
    http://www.airpath.com
    -----------------------------------------------------------------------

    -----Original Message-----
    From: Klenke, Brian [mailto:Brian.Klenke@53.com]
    Sent: Thursday, September 16, 2004 2:57 PM
    To: focus-ms@securityfocus.com
    Subject: VBScript to audit shares and share permissions

    I am looking for a VBScript that will return a list of shares of a given
    computer, along with each share's share permissions and NTFS
    permissions...

    Brian Klenke, CISSP CCNA

    This e-mail transmission contains information that is confidential and
    may be privileged. It is intended only for the addressee(s) named
    above. If you receive this e-mail in error, please do not read, copy or
    disseminate it in any manner. If you are not the intended recipient, any
    disclosure, copying, distribution or use of the contents of this
    information is prohibited. Please reply to the message immediately by
    informing the sender that the message was misdirected. After replying,
    please erase it from your computer system. Your assistance in correcting
    this error is appreciated.

    ------------------------------------------------------------------------

    ---
    ------------------------------------------------------------------------
    ---
    ---------------------------------------------------------------------------
    ---------------------------------------------------------------------------
    

  • Next message: Thor: "Re: Hardening Desktop"

    Relevant Pages

    • modify users Share permission not NTFS remove everyone, user change,adm F
      ... created shares and ntfs permissions by using cacls in another script. ... permissions are already set via vbscript. ...
      (microsoft.public.scripting.vbscript)
    • Re: RMTShare/Permissions
      ... Not being too good at VBScript, ... by simply running "rmtshare \\server" I get a list ... of shares on the server, but not their permissions. ...
      (microsoft.public.scripting.vbscript)
    • RMTShare/Permissions
      ... I'm needing to get a list of shares from specified servers and the ... Not being too good at VBScript, ... by simply running "rmtshare \\server" I get a list ... but not their permissions. ...
      (microsoft.public.scripting.vbscript)
    • Re: removing user from domain users group doesnt help
      ... What I would do is to give that global group deny access this computer from ... only access shares on that server. ... give that group deny permissions for other shares on that server. ...
      (microsoft.public.windows.server.security)
    • Re: removing user from domain users group doesnt help
      ... user permissions to any shares and instead give permissions to the global groups you want to have access or give the global group deny permissions to the shares you don't want them to access or deny access this computer from the network user right for computers you don't want them to access shares on which can easily be managed via Group Policy. ... I have few shared folders on my w2k3 file server and most of them allow read access for the domain users group. ...
      (microsoft.public.windows.server.security)