How to delete duplicate icons on desktops.

Posted on 2009-04-16
Last Modified: 2012-05-06
I am looking for a way to delete duplicate icons (usually web links).  I have rolled out some kix scripts through group policy to push icons to desktops based on computer and user id.  My first attempt did not do what I wanted (because of permissions) and the second attempt mostly works (again a permission issue I will be fixing with a program purchase to package the kix into an executable that will run with different credentials.)

With these attempts I have created duplicates and in some cases triplicates of a group of icons.  Is there any way to clear this up without wiping user placed icons.  All of the icons exist in the users profile and not in the AllUsers folder.
Question by:Sean Meyer
    LVL 2

    Accepted Solution

    If you know the names of the shortcuts, could you not just create a batch file to:
     del %userprofile%\Desktop\shortcut1.lnk
    del %userprofile%\Desktop\shortcut2.lnk
    LVL 9

    Author Comment

    by:Sean Meyer
    I hadn't thought on the matter that even though they look the same they must have something in the link which is slightly different from each other.

    I will give this a try.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    This article will show, step by step, how to integrate R code into a R Sweave document
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now