Search This Blog

Friday, October 21, 2016

Check-out all files in list or library in SharePoint using Powershell

Powershell Script to Check-out all files/items in a specified list or library .


$spWeb = Get-SPWeb http://localhost/  
   
$listName = "List/Library Name"  
$list = $spWeb.Lists |? {$_.Title -eq $listName} 
foreach ($item in $list.Items)     
  {    
    $itemFile = $item.File  
$itemFile.CheckOut();
      
  }  

No comments:

Post a Comment