Here is a tool to find out: WssAnalyzeFeatures. It will give you a log with missing features
Another option is to use the following PowerShell script (you can actually undo the comment to delete the missing features):
And the last option for more visual people the freeware tool with the name FaultyFeatureTool$siteurl = 'http://localhost'
$site=[Microsoft.SharePoint.SPSite]($siteUrl)foreach ($feature in $site.features) {if ($feature.definition -eq $null){write-host "Missing site feature:"write-host $feature.DefinitionIdwrite-host $feature.parent# $site.features.remove($featureid)} }$webs = $site.AllWebsforeach ($web in $webs) {foreach ($feature in $web.features) {if ($feature.definition -eq $null){write-host "Missing web feature:"write-host $webwrite-host $web.urlwrite-host $feature.DefinitionIdwrite-host $feature.parent# $site.features.remove($featureid)} }}
Missing the site templates?
Here is the PowerShell script to identify the site that uses the missing site template:$webAppUrl = Read-Host "Please enter url for web application to find missing templates"
Write-Host " "
Write-Host "Here the site with missing templates on the web application $webAppUrl"
Write-Host " "
$WA = [Microsoft.SharePoint.Administration.Spwebapplication]::Lookup($webAppUrl)
$wa.Sites|foreach {$_.AllWebs| foreach {if($_.WebTemplate -eq '') {$_.Url, $_.WebTemplateId}}}
No comments:
Post a Comment