[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to delete duplicate icons on desktops.

Posted on 2009-04-16
Medium Priority
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

Accepted Solution

Shallwin earned 2000 total points
ID: 24165215
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

Author Comment

by:Sean Meyer
ID: 24165235
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.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses
Course of the Month19 days, 5 hours left to enroll

834 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