Sharepoint 2010

Sharepoint Find and remove duplicates in the list using Powershell

Add-PSSnapin microsoft.sharepoint.powershell $web = Get-SPWeb -Identity “” $list = $web.Lists[“List Name”] $AllDuplicates = $list.Items.GetDataTable() | Group-Object title | where {$_.count -gt 1} $count = 1 $max = $AllDuplicates.Count foreach($duplicate in $AllDuplicates) { $duplicate.group | Select-Object -Skip 1 | % {$list.GetItemById($_.ID).Delete()}…

Sharepoint Copy List Permission using Sharepoint Powershell

Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue   #PowerShell Function to copy permissions between Lists in SharePoint Function Copy-ListPermissions() { param( $WebURL, $TargetWwebURL, $SourceListName, $TargetListName ) #Get the Web $Web = Get-SPweb $WebURL $TargetWeb=Get-SPweb $TargetWebURL #Get Source and Target Lists $SourceList = $Web.lists[$SourceListName]…

SharePoint 2010: Get List of All Web Applicatons/Site Collections/Sub-Sites/Permissions and Last Modified using PowerShell

#GET ALL WEB APPLICATIONS IN THE FARM $webApp = Get-SPWebApplication #FOREACH LOOP, LOOPING THROUGH ALL WEB APPLICATIONS IN THE FARM foreach ($webApps in $webApp) { #WRITE-HOST WEB APPLICATION NAME write-host “WEBAPP:” $webApps.Name #FOREACH LOOP, LOOPING THROUGH ALL SITE COLLECTIONS WITHIN…

Missing server side dependencies 8d6034c4-a416-e535-281a-6b714894e1aa

“Missing Server Side Dependencies” shows up in SharePoint Central Administration site’s Heath Analyzer shown here [MissingServerSideDependencies_AP.pdf]. Below is a list of reported MissingWebParts and Web Part ClassID that are reference in the content database [SP2010_AdminContentDB]. [baf5274e-a800-8dc3-96d0-0003d9405663] [9eba9c17-3b89-a2e7-a3cf-0ee3d7c2adb1] SearchTopologyView [07f48b68-2e69-c86a-ebe4-16359e03ebc2] AdvancedSearchBox…