I was able to get this working for Windows 10 by making the following corrections:
1) In the checkFiles function in the line beginning with "Else {Write-Host INCORRECT"...near the end of the line I appended a delimter to "$badFiles += $path" so it now reads $badFiles += $path + "|"...
It checks the entire list of files OK (doesn't produce an error at least) when there is more than 1 file/folder. Strange I know.. since its working in one place, I'm hoping this could possibly be a quick fix. I'm running out of time and will soon have to resort to the manual update of all the...
Mr. Bates, thank you for updating this over time. Much appreciated. I also used this on Windows XP, and now I'm trying to get this to work on Windows 10. I have been given the green light to use the Windows 7 baseline as there currently isn't a DSS Windows 10 baseline.
Anyways, your script...