PowerShell script to find and remove duplicate items from document library

Hi Friends,
Please check this below script, It is finding the duplicate items and removing it. This script is not working to find the duplicate items from document
library and remove. Can you please let me know where it is wrong.
Add-PSSnapin microsoft.sharepoint.powershell 
$web = Get-SPWeb -Identity "http://zapltvsspdev02:4333/bu/EXCO" 
$list = $web.Lists["AECI Documents"] 
$AllDuplicates = $list.Items.GetDataTable() | Group-Object INumber | where {$_.count -gt 1} 
$count = 1 
$max = $AllDuplicates.Count 
foreach($duplicate in $AllDuplicates) 
$duplicate.group | Select-Object -Skip 1 | % {$list.GetItemById($_.ID).Delete()} 
Write-Progress -PercentComplete ($count / $max * 100) -Activity "$count duplicates removed" -Status "In Progress" 
$count++ 
Remove-PsSnapin Microsoft.SharePoint.PowerShell
Note:
In the above code, duplicates are found using the "INumber" column. 
valmiki

check this
http://stackoverflow.com/questions/21337158/delete-duplicate-items-in-sharepoint-list

Similar Messages

  • HT2905 No Display Duplicates under File. How to find and remove duplicate items in your iTunes library

    I now have iTunes ver 11.0.4.4 under Windows 7. I lost all iTunes stuff when updating to Windows 7. I have loaded thousands amd thousands of music files from backup disks, but there are many duplicates. I am attemping to re-establish my old library. I used to be able to remove duplicates quickly with the old iTunes. The new iTunes doesn't seem to offer the same service. Is there any way to remove duplicates quickly, or must I do it one by one?

    When deduping use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks. If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    See also HT2905: How to find and remove duplicate items in your iTunes library
    tt2

  • HT2905 How to find and remove duplicate items in your iTunes library

    I need an easy and quick way to remove duplicate items from Itunes library since it duplicates to the IPOD 4.

    I've written a script called DeDuper which can help remove unwanted duplicates.
    See this  thread for background.
    tt2

  • HT2905 Does anyone know how to find and remove duplicate items in the new itunes 11?

    I am having a hard time trying to figure out how to find and remove duplicate items under the New iTunes 11? Its not as user friendly as in previous versions. Does anyone know how to figure this out?

    As Jim said View > Show Duplicates
    or
    Option + View > Show Exact Duplicates

  • How can I find and remove duplicate photos from my computer?

    How can I find and remove duplicate photos from my computer?

    Terence,
    Yes, the duplicates appear in the iPhoto window. I have folders with same name occuring two or even three times sometimes with exactly the same set of photos (ie photos with the same ID) and sometimes with a limited set of photos. Other  folders appear only once.
    I normally take my MacBook with me if I'm shooting a lot of photos, such as on holiday, and then want to transfer them to my iMac when i get home. Other times I transfer the camera's memory stick directly to my iMac.
    I have great difficulty transferring the photos from my MacBook to my iMac. I don't want to store my photos on my iDisk due to the length of time it takes to upload them.
    Thanks again.
    Simon

  • How do i remove duplicate items from my library

    After interrupting a download of a season of TV shows from the iStore, I restarted my computer and the download process started again from the beginning, creating duplictes of episodes that had previously been downloaded. Result appears to be duplicate files in my library. I've attempted to delete the "duplicates" from my library with no success. Are these really duplicated or is it just a display issue. If they are duplcautes, is there a simple way to provent this from hapening again? Seems odd that the download process wouldn't recognize that the files were already there.

    Do some of the episodes show up with a cloud symbol? If so sign out of the iTunes store and then sign in again.
    Highlight one duplicated episode, right-click and click Show in Windows Explorer. Are there multiple copies of the same episode listed? If so you have true duplicates and can delete the redunant copies from iTunes, sending the files to the recycle bin when prompted. If there is only one copy of each episode then delete the spare entries from iTunes but don't recycle the files.
    tt2

  • HT2905 How to find and remove duplicate items in your iTunes library for iTunes 11

    I found instructions for iTunes 10, not the same as 11. New to iTunes - have LOTS of duplicates. There must be a way to delete them besides one at a time! Please help...

    If you don't see a menu bar press Ctrl+B to reveal it or Alt to show it temporarily. To check your library for duplicates use Shift > View > Show Exact Duplicates as this is normally a more useful selection. Keep holding down shift until you have clicked on the text Show Exact Duplicates or it may still use the loser definition.
    If you find that you have true duplicates you need to manually select all but one of each group to remove, or use my DeDuper script if you don't want to do it by hand. The script attempts to take account of different types of duplicates which need to be handled differently, merges playcounts and preserves playlist membership. Please take note of the warning to backup your library before deduping. See this thread for background.
    tt2

  • HT2905 how do i find and remove duplicate songs in itunes 11.1.3?

    i transferred my itunes to a new computer today, and somehow half of my library was duplicated. no i cant seem to find a way to get rid of the duplicates without selecting them one at a time. any ideas?

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    Alternativey see this migrate iTunes library post, you may want to revisit the transfer method.
    tt2

  • How do I find and remove duplicates on the 11.2 itunes?

    How do I find and remove duplicates on the 11.2 itunes?

    duplicate annihaitor
    But often duplicates are a symptom and you really need to address the cause - more information is needed to help out with that
    LN

  • How can I find and remove duplicate photos in iPhoto?

    What is the best way to find and remove duplicate photos in iPhoto?

    Are you seeing these duplicates in iPhoto or via the Finder?  If it's in the iPhoto window then you can use one of these applications to identify and remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Cleaner for iPhoto - free
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when one library has been imported into another with iPhoto 8 and earlier.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    I also prefer iPLM as it is more than just a dup finder.  It's a the most versatile iPhoto utility available.
    OT

  • Find and remove duplicates advice?

    hi all,
    would it be possible to get a little advice and some feedback on others' experience with finding and removing duplicates from the aperture database?
    i am doing this now for scans, pdf's, images and other data on my mac book pro and on my mac pro and it would be helpful for me to know what is possible for me to get done with the aperture database.
    TIA

    I haven't used it  myself but  Duplicate Annihilator it is mentioned here often as a solution for this.

  • How do i find and delete duplicate in my song library???????

    How do i find and delete duplicate in my song library???????

    Under the file tab in iTunes, select Display Duplicates. From there you can delete them as well.

  • [svn:osmf:] 16975: Fix bug FM-964, add media factory item for RTMFP multicast and remove the item from OSMFPlayer

    Revision: 16975
    Revision: 16975
    Author:   [email protected]
    Date:     2010-07-19 15:20:00 -0700 (Mon, 19 Jul 2010)
    Log Message:
    Fix bug FM-964, add media factory item for RTMFP multicast and remove the item from OSMFPlayer
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-964
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/media/DefaultMediaFactory.as

    Welcome guy -
    Unless you are using Spry menus as a learning experience, you should move forward to a menus system that will display properly on the millions of portable devices that won't work with Spry which was deprecated 2 years ago.
    Many are using JQuery menus or pure HTML/CSS menus.
    If you wish to continue your Spry for learning experience, we'll be glad to assist; please let us know.
    By the way, your submenus are not showing because you need to add the red value to this rule in your vertical CSS
    ul.MenuBarVertical ul.MenuBarSubmenuVisible{
        width: 220px;
        left: 180px;

  • Drag and drop the file from document library to desktop in sharepoint 2013

    can we drag and drp the file from document library to desktop in sharepoint 2013
    Blitz

    We are using third party tool called PageLight for
    SharePoint Outlook Integration which provides drag and drop functionality of emails from Outlook to SharePoint.  Other features includes
    Save Outlook emails to SharePoint and also moving files/folders from file share.
    Thanks
    Alfred

  • Hi , how do i find and remove duplicate videos and photos on my ipad2 , please help

    Hello , i have an apple ipad 2 , and iphone 4s and 5s . I have transferred all videos and photos on both these phones to the ipad to make space on my iphones. I have no doubt that there is now multiple duplicates on my ipad . How can i find and remove these. Please help should you know !

    i imported all the files in my sd card to my mac and then i did format the card, it says 160kb is used up.
    I also did find files in the trash when i connected the camera to the macbook and deleted them all, there is nothing left in the camera or the trash and it still says 160kb used :/

Maybe you are looking for

  • IPod nano shipped WITH SCRATCHES

    I was very excited to finally recieve my white 4gb nano today from fedex. i open up the box to fine a beautiful nano, WITH A SCRATCH across the screen that affects the display, i do not know what steps to take, any suggestions?

  • Exchange rate difference in MIGO and MIRO

    Dear Experts, Our local currency is INR. We have created PO and MIGO on 31.03.2015 with exchange rate 62.5908 without tick on fixed exchange rate in PO. OB08  is  also same on 31.03.2015. But at the time of MIRO system showing error massage for confi

  • Oracle 10g rel2 Forms on windows Vista (Patches7047034 and Opatch 6880880).

    Hello All, I have been trying to apply patch 7047034 by using Opatch Universal Installer (Opatch 6880880). But I have not been able to do this. The main reason of applying this patch is to enable my forms 10.1.2.0.2 to be upgraded to 10.1.2.3., so th

  • Abap engine

    Hey, Is there any ABAP engines available which can be downloaded from net. Rakesh.

  • CS5 to CS4

    Hi all, we have a CS4 license and we downloaded the CS5 trial to see if it was worth upgrading.We can't open any files we've created in CS5 in CS4, and are getting a message stating that we need to update a ton of plug-ins. This just seems ridiculous