Powershell script to generate Audit log report and send email for Delete events in SP 2013 site

Ganesh 46 Reputation points
2022-05-23T06:53:08.773+00:00

Hi Team,

My organization enabled Audit log for the Sharepoint 2013 site.

I have to get the report on weekly basis and send email to team if any items/ documents deleted by users.

Can you some one help to achieve this?

Is is possible using Powershell script to generate Audit log only for Delete events for SP 2013 site and send that report over email to users

Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Tong Zhang_MSFT 9,251 Reputation points
    2022-05-27T08:43:03.363+00:00

    Hi @Ganesh ,

    Based on my research and testing, you can refer to the content and scripts in the following article to achieve this requirement. Hope it can help you .Thanks for your understanding and support.

    https://eskonr.com/2021/05/using-powershell-retrieve-the-o365-audit-logs-for-sharepoint-sites/
    https://github.com/eskonr/MEMPowered/blob/master/Scripts/Office365/o365-Auditlogs-sharepointsites.ps1

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.