Difference between revisions of "Filesystem Audit Powershell"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) (Created page with "WIP, just throwing things down on paper at the moment. ==Purpose== To generate a list of permissions on a network share, dump to database, compare to list of users from AD, g...") |
(No difference)
|
Revision as of 21:03, 25 June 2018
WIP, just throwing things down on paper at the moment.
Purpose
To generate a list of permissions on a network share, dump to database, compare to list of users from AD, generate reports as to what users have access too.
Process
This was a an uphill battle trying to re-learn objects (It has been a while since my last need for powershell). Trying to desing a new domain forest and security groups caused me to need to understand the current deployment. The idea with the current desing was to keep things simple, but business requirements got out of hand. [1]
(get-item \\network-share\directory).GetAccessControl() | select -ExpandProperty access | select identityreference,filesystemrights,isinherited
For matching regex[2]