Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



A script to list shares with permissions

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-08-2007
geniiw
 
Posts: n/a
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?


Reply With Quote
  #2  
Old 17-08-2007
J Ford
 
Posts: n/a
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?
>

Reply With Quote
  #3  
Old 17-08-2007
geniiw
 
Posts: n/a
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?
> >

Reply With Quote
  #4  
Old 17-08-2007
J Ford
 
Posts: n/a
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?
> > >

Reply With Quote
  #5  
Old 24-03-2008
earlzdon18
 
Posts: n/a
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?
> > > >

Reply With Quote
  #6  
Old 24-03-2008
earlzdon18
 
Posts: n/a
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.
Reply With Quote
  #7  
Old 24-03-2008
earlzdon18
 
Posts: n/a
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
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 11:45 AM.