folder and shares ACL's

Discussion in 'Windows Server' started by christotpher, Mar 1, 2006.

  1. christotpher

    christotpher Guest

    Is there a way I can walk through the network and get a list of server shares
    and folders with their ACL's. The baseline security tool has this info but in
    a strange format, I'm just looking for text output, thanks
     
    christotpher, Mar 1, 2006
    #1
    1. Advertisements

  2. To get server shares:
    net share > c:\Shares.txt

    To get ACLs:
    @echo off
    if exist c:\ACL.txt del c:\ACL.txt
    dir /s /ad /b d:\ > c:\dir.txt
    for /F "tokens=*" %%* in (dir.txt) do cacls /t "%%*" >> c:\ACL.txt
     
    Pegasus \(MVP\), Mar 2, 2006
    #2
    1. Advertisements

  3. christotpher

    christotpher Guest

    Thanks alot!
    --
    Chris Jones


     
    christotpher, Mar 3, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.