SharePoint 2010 Disable List Throttling and Enable Version on Generic Lists
Open SharePoint 2010 Power Shell and run following script:
$siteURL = "http://siteurl"
$site = Get-SPSite($siteURL)
foreach($web in $site.AllWebs) {
Write-Host "Inspecting " $web.Title
foreach ($list in $web.Lists) {
if($list.BaseType -eq "GenericList") {
Write-Host $list.Title "Versioning enabled: " $list.EnableVersioning $list.EnableThrottling
$host.UI.WriteLine()
$list.EnableVersioning = $true
$list.EnableThrottling = $False
$list.Update()
Write-Host $list.Title "Versioning enabled: " $list.EnableVersioning $list.EnableThrottling
$host.UI.WriteLine()
}
}
}
==============================================================
$siteURL = "http://siteurl"
$site = Get-SPSite($siteURL)
foreach($web in $site.AllWebs) {
Write-Host "Inspecting " $web.Title
foreach ($list in $web.Lists) {
if($list.BaseType -eq "GenericList") {
Write-Host $list.Title "Versioning enabled: " $list.EnableVersioning $list.EnableThrottling
$host.UI.WriteLine()
$list.EnableVersioning = $true
$list.EnableThrottling = $False
$list.Update()
Write-Host $list.Title "Versioning enabled: " $list.EnableVersioning $list.EnableThrottling
$host.UI.WriteLine()
}
}
}
==============================================================
$web = Get-SPWeb
-Identity http://site
$web.AllowUnsafeUpdates =
$true
$list =
$web.Lists["ListName"]
$list.EnableThrottling =
$false
$list.Update()
$web.AllowUnsafeUpdates =
$false
$list.EnableThrottling
$web.Update()
$web.Dispose()
Comments
Post a Comment