0

I have a task to enable the 'Require Check Out' feature on each document library on all sites we have. See the picture below:

enter image description here

There are about 20 sites in our site collection and each site has only one document library where I need to enable the feature. Is there any bulk option to change the feature for all libraries at once?

Thanks.

4

You can easily do it with PowerShell script.It is having attribute $list.ForceCheckout = $true

for more reference you can refer this Change SharePoint list settings using PowerShell - Part 1: General and Versioning

Please let me know if it help you.

Thanks

  • I actually did it manually already :) But the article is awesome. Thanks! – Emil Gurbanov May 12 '16 at 9:08
5

You can use below PowerShell command to set Require Check Out feature on each document library on all sites

    foreach ($web in (Get-SPSite -Limit All | Get-SPWeb -Limit All))
         {
            Write-Host “Processing Web: $($web.Url)…”
            foreach ($list in ($web.Lists | ? {$_ -is [Microsoft.SharePoint.SPDocumentLibrary]}))
            {
    $list.ForceCheckout = $true;
    $list.Update();

   }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.