How to check if the list level Throttling is enabled or not in SharePoint Online/2010/2013/2016?

 

Hello SharePointers,

Below is the Powershell script to check if the list level Throttling is enabled or not.

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$webApplicationURL = Read-Host “Enter SharePoint Web Application URL”
$reportPath = Read-Host “Enter full Path URL in the format”
$webapplication = Get-SPWebApplication $webApplicationURL
$sites = $webapplication.Sites
Write-Output “SharePoint List URL” | Out-File $reportPath

foreach($site in $sites)
{
$webs = $site.AllWebs
foreach($web in $webs)
{
$lists = $web.Lists
foreach($list in $lists)
{
if(-not $list.EnableThrottling)
{
$listUrl = “$($web.Url)$($list.DefaultViewUrl)”
Write-Host $listUrl -ForegroundColor Red
Write-Output $listUrl | Out-File $reportPath -append
}
}
$web.Dispose()
}
$site.Dispose()
}
Write-Host completed successfully!” -ForegroundColor Green

Happy SharePointing Folks 🙂

Leave a Reply

Your email address will not be published.