Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Share Permissions

By Chad Miller,

Use this Perl script to produce an audit report of both share permissions and NTFS permissions of the shared folders. To report share permissions:
Use shareperms.pl -p -SMyServer1 to report on a single server.
Or use shareperms.pl -p -SMyServer1,MyServer2 for multiple servers.
You can also use a text file as input: shareperms.pl -p -CServers.txt
To report NTFS permissions use -n instead of -p. Script is designed to be run remotely producing csv output. The script uses RMTSHARE and FILEACL utilities available from Microsoft. Reporting share permissions is fast, however NTFS permissions can take longer depending on number of folders and ACLs. To limit output you can add /NOINHERITED parameter to FILEACL statement, see FILEACL /? for details.

Total article views: 229 | Views in the last 30 days: 3
 
Related Articles
SCRIPT

Report SQL SERVER 2005 Permissions

Reports permissions to three levels: database, schema and table -- in three formats: readable, struc...

FORUM

Scripting Objects Including Permissions

Scripting Objects Including Permissions

SCRIPT

The Complete SQL Server 2005 Permissions Report

The script provides complete and comprehensive permission reports, on all SQL Server security hierar...

FORUM

Report Script...

How to generate a completely report script...

FORUM

SSRS Shared Schedule Permission

How do you grant access to Shared Schedules?

Tags
miscellaneous    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones