SharePoint Version history limits

Artem Shaturskyi 220 Reputation points
2025-01-23T09:02:23.35+00:00

Hello!
We have a SharePoint environment with multiple sites. Previously, the Version History limit was set to 'Automatically,' but we now want to change it to 'Manually' with a specific time period. According to the setting description, 'This setting does not apply to existing OneDrive accounts or SharePoint document libraries.'

How can we apply this change to all existing sites and files?

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Artem Shaturskyi 220 Reputation points
    2025-01-31T08:10:50.8433333+00:00

    @AllenXu-MSFT ,
    Here’s how you can do this:

    1. Go to the document library you want to modify.
    2. Click on the Settings gear in the top-right corner, then select Library settings (or go to Site Settings > Library settings).
    3. Under General Settings, click on Versioning settings.
    4. Select Manually for versioning.
    5. Specify the number of versions you want to retain or set it to retain versions for a specific time period.
    6. Save the settings.

    In Powershell use Set-PnPList cmdlet.

    This answers the initial question.

    1 person found this answer helpful.
    0 comments No comments

  2. AllenXu-MSFT 24,941 Reputation points Moderator
    2025-01-24T02:46:04.57+00:00

    Hi @Artem Shaturskyi,

    I‘m afraid this is a known limit in SharePoint. For existing OneDrive accounts or SharePoint document libraries, we cannot apply this change. But these settings apply universally to all new libraries, whether on existing or new SharePoint sites, and on default libraries on new OneDrive sites.

    In one word, changes to SharePoint Version history limits can apply to new libraries in existing sites but cannot apply to existing libraries.


    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.