Folder/File Permission and Folder/File Auditing Help

(imported comment written by sgelpi)

I believe the previous poster is correct though I did not see any difference in his code and yours. Try replacing your folder with a location of system statement like below:

Example:

(account name of trustee of it & " - " & (if (generic read permission of it OR read permission of it) then “R” else “”) & (if (generic write permission of it OR write permission of it) then “W” else “”) & (if (generic execute permission of it OR execute permission of it) then “E” else “”)) of entries of dacls of security descriptors of folder (location of system folder & “\system32\spool”)

As long as you are always looking in the system folder under “\system32\spool” it does not matter where it is stored.