Nov 13 2020 03:13 AM
Need to list files from multiple paths with its full path, date & time info. The condition is it has to exclude files owned by a specific user and also exclude files from certain folders
Nov 13 2020 12:21 PM
Try this quick one
$Paths=@('C:\AttendanceReport','C:\Chocolatey')
Get-ChildItem $Paths -Recurse | get-acl | where {($_.path -notlike "*\dontInclude\*") -and ($_.Owner -notlike "*System*")}