Hi all,
I am facing issue to get audit log details for all site collection across the farm with the below script. Could someone help me change the script.
Function AuditValue($url)
{
$site=Get-SPSite $url
auditMask = $site.audit.auditflag
return auditMask
}
Get-SPSite -Limit All | Get-SPWeb -Limit All |
Select Title,Url,AuditValue(Url)| export-csv "D:\scripts\Test\AuditDetails.csv" -notypeinformagettionThanks Basva









