Forum Discussion

Kalos R's avatar
Kalos R
Copper Contributor
Apr 17, 2017

Default Versioning Settings - Number of Versions to retain

It appears that the default versioning settings for OneDrive are for 500 major versions.  Is there a way to reduce this default globally?  It doesn't appear so via the GUI but was wondering if perhaps there was a way to set this via powershell?

  • Lou Mickley's avatar
    Lou Mickley
    Iron Contributor

    If you are concerned about consuming space, keep in mind this is 500 versions, but not 500 copies of the file, only changed portions of the file.  Also, using Office Online saves the file frequently and drives up the version count, as does co-authoring.  Then additionally, OneDrive only syncs the currently copy to devices.

    • Thomas Noble V's avatar
      Thomas Noble V
      Copper Contributor

      I think that's only the case with MS Office documents, about which the infrastructure can ascertain what changes have been made.  I have a user who moved an Outlook PST file to their OneDrive folder (with good reasons at the time) and because that PST is the delivery location for an active mailbox that ended up with over 11,000 versions of the entire PST consuming all of their 1TB OneDrive storage.

      • KNIGHT LIU's avatar
        KNIGHT LIU
        Copper Contributor

        Hi Thomas, we got one similar case. May I know how you delete these pst history versions to release space in onedrive? 

  • Mark Filer's avatar
    Mark Filer
    Copper Contributor

    I was able to achieve this without a script... I had to go to classic OneDrive (bottom left of page --> Return to classic OneDrive):

    Next I chose the settings gear in the top O365 nav bar, and was able to choose Site settings... Go to site settings for this site.

     

     

    From there, under Site Administration, choose Site libraries and lists:

     

    ...then Customize "Documents":

     

    You will be taken to the Documents > Settings page. Under General Settings, choose Versioning settings

     

     

    Under Document Version History, you can change the number of versions retained, 

     

    Hope that helps!

     

  • I think it is possible using a powershell script.

    • Kalos R's avatar
      Kalos R
      Copper Contributor
      I did search online for powershell commands but didn't find anything to set this globally. Do you know of a cmdlet to do this?

Resources