Here is the revised version 1.2 of script
# R.A.C.
#
# J.Bates
#
# Revision History
#
# Version 1.0 February 7 2014
# Version 1.1 August 28, 2015 Revision by D.Barras
# Version 1.2 December 18, 2017 Revision by J.Goodrow
#
# This powershell script will check for auditing on files/folders
# per...
I have it working with this change in the Check Folders function
if (!$osd.Descriptor.SACL){
if($badFileCount -eq 0){
Write-Host INCORRECT $path No Auditing Set $osd.Descriptor.ControlFlags -foregroundcolor red;
$badFiles += $path...
It does not look like the fix is working. When I tried it with the fix, I am getting an object not found error in the SetAuditing function that can be traced back to the Check Files function. The $badFiles += $path code is appending the $badFiles value so that the path to the files are...