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.
2007-10-02 (first published: 2002-06-20)
15,443 reads