Results 1 to 7 of 7

Thread: A script to list shares with permissions

  1. #1
    geniiw Guest

    A script to list shares with permissions

    Hello,

    Please help. Is there a script that can list all share from a server listed
    in a text file that will include the share permissions and ntfs permissions?


  2. #2
    J Ford Guest

    RE: A script to list shares with permissions

    Just modify this to include the looping of your text file and replace the
    <servername>

    <batch>
    @ECHO OFF
    for /f "Skip=4 Tokens=1" %%p in ('rmtshare \\<servername>') do (
    CALL :GETPERMS %%p
    )
    GOTO END
    :GETPERMS
    if "%1" neq "The" (
    echo ========================================
    echo ========================================
    rmtshare \\<servername>\%1
    )
    :END
    </batch>

    "geniiw" wrote:

    > Hello,
    >
    > Please help. Is there a script that can list all share from a server listed
    > in a text file that will include the share permissions and ntfs permissions?
    >


  3. #3
    geniiw Guest

    RE: A script to list shares with permissions

    Thank you so much for help. But Is this script in VBScript? and if so how
    can this be implemented via text file?

    "J Ford" wrote:

    > Just modify this to include the looping of your text file and replace the
    > <servername>
    >
    > <batch>
    > @ECHO OFF
    > for /f "Skip=4 Tokens=1" %%p in ('rmtshare \\<servername>') do (
    > CALL :GETPERMS %%p
    > )
    > GOTO END
    > :GETPERMS
    > if "%1" neq "The" (
    > echo ========================================
    > echo ========================================
    > rmtshare \\<servername>\%1
    > )
    > :END
    > </batch>
    >
    > "geniiw" wrote:
    >
    > > Hello,
    > >
    > > Please help. Is there a script that can list all share from a server listed
    > > in a text file that will include the share permissions and ntfs permissions?
    > >


  4. #4
    J Ford Guest

    RE: A script to list shares with permissions

    No it's a regular window .BAT file. RMTSHARE is a command line utility from
    MS.
    ftp://ftp.microsoft.com/bussys/winnt...86/RMTSHAR.EXE



    "geniiw" wrote:

    > Thank you so much for help. But Is this script in VBScript? and if so how
    > can this be implemented via text file?
    >
    > "J Ford" wrote:
    >
    > > Just modify this to include the looping of your text file and replace the
    > > <servername>
    > >
    > > <batch>
    > > @ECHO OFF
    > > for /f "Skip=4 Tokens=1" %%p in ('rmtshare \\<servername>') do (
    > > CALL :GETPERMS %%p
    > > )
    > > GOTO END
    > > :GETPERMS
    > > if "%1" neq "The" (
    > > echo ========================================
    > > echo ========================================
    > > rmtshare \\<servername>\%1
    > > )
    > > :END
    > > </batch>
    > >
    > > "geniiw" wrote:
    > >
    > > > Hello,
    > > >
    > > > Please help. Is there a script that can list all share from a server listed
    > > > in a text file that will include the share permissions and ntfs permissions?
    > > >


  5. #5
    earlzdon18 Guest

    RE: A script to list shares with permissions



    "J Ford" wrote:

    > No it's a regular window .BAT file. RMTSHARE is a command line utility from
    > MS.
    > ftp://ftp.microsoft.com/bussys/winnt...86/RMTSHAR.EXE
    >
    >
    >
    > "geniiw" wrote:
    >
    > > Thank you so much for help. But Is this script in VBScript? and if so how
    > > can this be implemented via text file?
    > >
    > > "J Ford" wrote:
    > >
    > > > Just modify this to include the looping of your text file and replace the
    > > > <servername>
    > > >
    > > > <batch>
    > > > @ECHO OFF
    > > > for /f "Skip=4 Tokens=1" %%p in ('rmtshare \\<servername>') do (
    > > > CALL :GETPERMS %%p
    > > > )
    > > > GOTO END
    > > > :GETPERMS
    > > > if "%1" neq "The" (
    > > > echo ========================================
    > > > echo ========================================
    > > > rmtshare \\<servername>\%1
    > > > )
    > > > :END
    > > > </batch>
    > > >
    > > > "geniiw" wrote:
    > > >
    > > > > Hello,
    > > > >
    > > > > Please help. Is there a script that can list all share from a server listed
    > > > > in a text file that will include the share permissions and ntfs permissions?
    > > > >


  6. #6
    earlzdon18 Guest

    RE: A script to list shares with permissions

    have tried to download rmtshar.exe / rmtshare.ext from ms's ftp server but
    get page not available.
    Any idea where else to get it from.

  7. #7
    earlzdon18 Guest

    RE: A script to list shares with permissions

    almost immediately found it at
    http://www.petri.co.il/download_free_reskit_tools.htm
    with lots of other goodies

Similar Threads

  1. Script to list users who Are connected
    By Ron1 in forum Networking & Security
    Replies: 3
    Last Post: 11-09-2009, 02:31 PM
  2. Reset child permissions / inheritance of folder with script
    By Thomas in forum Windows Server Help
    Replies: 8
    Last Post: 03-02-2009, 05:50 AM
  3. VB script - List all user groups Help
    By Daljeet in forum Software Development
    Replies: 4
    Last Post: 18-12-2008, 07:51 PM
  4. How to script Share Permissions
    By Steve Furniss in forum Windows Server Help
    Replies: 1
    Last Post: 08-11-2007, 03:31 AM
  5. List folder permissions
    By Parsu in forum Windows Server Help
    Replies: 4
    Last Post: 12-05-2007, 11:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,541,117.23917 seconds with 17 queries