|
| ||||||||||
| Tags: permissions, script, shares |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| A script to list shares with permissions
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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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 |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "A script to list shares with permissions" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to list users who Are connected | Ron1 | Networking & Security | 3 | 11-09-2009 02:31 PM |
| Reset child permissions / inheritance of folder with script | Thomas | Windows Server Help | 8 | 03-02-2009 04:50 AM |
| VB script - List all user groups Help | Daljeet | Software Development | 4 | 18-12-2008 06:51 PM |
| How to script Share Permissions | Steve Furniss | Windows Server Help | 1 | 08-11-2007 02:31 AM |
| List folder permissions | Parsu | Windows Server Help | 4 | 12-05-2007 11:05 PM |