SOLVED

Sharepoint powershell problem

Copper Contributor

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.

 

Capture 2.JPG

1 Reply
best response confirmed by VI_Migration (Silver Contributor)
Solution
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.
1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
Solution
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.

View solution in original post