Enable Auditing in SharePoint

From Secrets of SharePoint – Tip of the Day

Niklas Goude

You can enable site audit using Windows PowerShell. The example below demonstrates how to add specific audit flags on a site collection and enable auditing:

PS > $spSite = Get-SPSite http://SP01.powershell.nu

PS > $spSite.Audit.AuditFlags =

>> ([Microsoft.SharePoint.SPAuditMaskType]::All `

>> -bxor[Microsoft.SharePoint.SPAuditMaskType]::View)

PS > $spSite.Audit.Update()

PS > $spSite.Dispose()

This entry was posted in SharePoint and tagged by Rick Backus. Bookmark the permalink.

About Rick Backus

A technology consultant with over 25 years of IT, consulting and business technology industry experience. Specializing in integrating application, information and content management with business process and network infrastructure. Helping clients get the most out of technology to enable increased productivity, profitability, customer satisfaction and competitive advantage.