Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

7 thoughts on “Configure Audit Settings for SharePoint 2013 / 2016 Sites using PowerShell

  • can you only enable auditing for a specific events such security/permission changes? Thanks!

  • hi, thanks for the script.
    how do i set the location to store audit reports

    • following the blog. appreciate the response

      • $web = Get-SPWeb
        $web.AllProperties[“_auditlogreportstoragelocation”] = $web.Lists[“Listname”].RootFolder.ServerRelativePath

  • We are finding that when running this from a ps session from a remote server (non-shareoint)connecting to sharepoint server this does not work.

    Exception setting “AuditLogTrimmingRetention”: “Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))”
    At line:9 char:1
    + $_.AuditLogTrimmingRetention = 30
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
    + FullyQualifiedErrorId : ExceptionWhenSetting

  • Is there a way to enable Auditing at the list and library level of Information Management Policy Settings?


Leave a Reply

Your email address will not be published. Required fields are marked *