Current NTFS ACEs Without Inheritance
Current NTFS ACEs Without Inheritance
Details
    Summary
How when using the srs.current_ntfs_aces view can I report on the ACEs without inheritance?
Explaination
The srs.current_ntfs_aces view includes a field called ace_flags which is a value mask.
If the bit flag with a value of 16 is present, then the ACE is inherited. Filtering out inherited ACEs is a simple matter of checking that this flag is off.
Code
    SELECT * FROM srs.current_ntfs_aces WHERE ace_flags & 16 <> 16
Post date
    Wednesday, January 6, 2021 - 08:48
      Last modified
    Friday, April 26, 2024 - 12:49
      Downloads
    | Attachment | Size | 
|---|---|
| 3.38 KB | 
Sample Report
    | Attachment | Size | 
|---|---|
| 75.66 KB | 
              