Forum Discussion

Simon_C0010's avatar
Simon_C0010
Copper Contributor
Apr 07, 2022
Solved

Sharepoint powershell problem

Hi all:

 

Would like to implement the major versioning to 100 to all document library of all sites. But the following code can only change the versioning to one document library "Cold Storage" in a site called "Test". How can I change the code then? Many thanks.

 

  • plenty of examples out there, you'll need to
    1- iterate through each site in SharePoint
    2- then for each site iterate through each library
    3- then for each library you run the settings change chose you have above.
  • Warwick Ward's avatar
    Warwick Ward
    Bronze Contributor
    plenty of examples out there, you'll need to
    1- iterate through each site in SharePoint
    2- then for each site iterate through each library
    3- then for each library you run the settings change chose you have above.

Resources