Get Retenetion Policy Info from SharePoint 2013 using script or some other approach without manual effort

Manoj Goud 1 Reputation point
2022-12-02T05:42:42.52+00:00

Hi I have a requirement to export the retention policy info from SharePoint on-prem to CSV using script. But I don't find any such PowerShell script to pull the retention policy info from SharePoint on-prem environment.

Could you please help on this how to pull retention policy info from SharePoint on-prem without manual approch?

Thanks.
Regards,
Manoj

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

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,861 Reputation points Microsoft External Staff
    2022-12-05T06:16:11.423+00:00

    @Manoj Goud

    Per my knowledge and research, it's not available to use PowerShell script to get retention policy information in the SharePoint server.

    As a workaround, you could use “Generate file plan report” to export retention policy information at list and library level.

    Go to List or Library settings -> Generate file plan report -> Get the report.

    Reference:

    https://www.c-sharpcorner.com/UploadFile/644e54/generate-file-plan-report-in-sharepoint-2013-and-office-365


    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.