Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 13778

Powershell script to get Audit log settings for all site collections.

$
0
0

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" -notypeinformagettion


Thanks Basva


Viewing all articles
Browse latest Browse all 13778

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>