Edit default view for all libraries

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3162483%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EEdit%20default%20view%20for%20all%20libraries%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3162483%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EHi%2C%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI%20have%2050%2C000%2B%20document%20libraries%20all%20using%20the%20standard%20All%20Documents%20view%2C%20which%20is%20sorted%20by%20modified%20date%20oldest%20to%20newest.%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI%20need%20to%20change%20all%20of%20these%20to%20be%20sorted%20newest%20to%20oldest.%20Can%20anybody%20suggest%20how%20I%20do%20this%3F%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI%20don't%20seem%20to%20be%20able%20to%20change%20view%20settings%20at%20a%20site%20level%20so%20my%20best%20idea%20is%20to%20use%20powershell%20to%20create%20a%20new%20default%20view%20and%20set%20it%20for%20all%20existing%20libraries%20but%20that%20would%20not%20affect%20new%20libraries%20that%20are%20created.%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3162483%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EDocument%20Library%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3ESharePoint%20Online%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Occasional Visitor

Hi,

 

I have 50,000+ document libraries all using the standard All Documents view, which is sorted by modified date oldest to newest.

 

I need to change all of these to be sorted newest to oldest. Can anybody suggest how I do this?

 

I don't seem to be able to change view settings at a site level so my best idea is to use powershell to create a new default view and set it for all existing libraries but that would not affect new libraries that are created.

1 Reply
There is no Site level settings to change the views as the views are created and stored at the Document library level. You are correct for thinking of using PowerShell to create/update views for Existing Document libraries.
- For new Document Library scenario, you can create a Document Library template from existing OOB Document Library that is matching all the sort/filter/ content type set up you want and then ask users to create library from that template instead of choosing Our of the box Document library.