Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 815
  • Last Modified:

Change Sharepoint subsite version settings

Hi Experts,

We have a client that has an Office 365 Sharepoint site that has multiple subsites.  We would like to change the version control settings for each of the document libraries of the subsites.  Is there a way to push down version control changes from the Site Collection instead of changing each subsite document library?

Thanks!
0
xlingshot
Asked:
xlingshot
  • 3
  • 2
  • 2
2 Solutions
 
Justin SmithSr. System EngineerCommented:
No.  You could do it via PowerShell script.  If that is a possibility for you, I can see if I have the script.
0
 
xlingshotAuthor Commented:
That would be great.  I'll need to look up the connection process again.  They seem to change it every time I use PowerShell with Office 365.  Thanks!
0
 
Vasil Michev (MVP)Commented:
Not really sure if it will be possible, SharePoint Online has a very limited set of cmdlets available and none of them deal with actual sites (no Set-SPWeb cmdlet). Looking forward to any script ACH1LLES can provide :)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Justin SmithSr. System EngineerCommented:
This should point you in the right direction.  Again, not saying if it works for O365 or not.

#Variables
$siteURL="http://urloftoplevelsite"
$major="number of major versions you want to keep"
$minor="number of majors to keep minors"
      
#Code
$site=Get-SPSite $siteURL
ForEach ($web in $site.AllWebs){
ForEach ($list in $web.lists){
      $list.EnableVersioning=$true
        $list.EnableMinorVersioning=$true
      $list.MajorVersionLimit=$major
        $list.MajorWithMinorVersionsLimit=$minor
      $list.Update()
}
}
0
 
xlingshotAuthor Commented:
I don't suppose you have the PowerShell connection information for Office 365 Sharepoint, do you?  Usually just connect into Exchange and make changes to mailboxes.  Is it the same process?
0
 
Vasil Michev (MVP)Commented:
Here you go:

http://technet.microsoft.com/en-us/library/fp161372.aspx

But I can bet you the above script will not work, as I said no cmdlets are available to manage separate sites in SPO.
0
 
xlingshotAuthor Commented:
Thanks for all the information guys.  At this point, it's probably just easier to click through each of the sites and change the version control.  

Thanks again!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now