Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Script for Shortcut Icon Deletion from the Desktop

Updated: 10 May 2009 | 2 comments
riva11's picture
+4 4 Votes
Login to vote

During Windows client preparation, most of the corporate programs I work with create a shortcut icon on the user's desktop.

I prefer to maintain a computer clean of programs used infrequently. For example, Adobe Reader and other viewers normally are executed from a folder or e-mail attachement, not by launching the program from a shortcut on the desktop.

For this reason in my installation process I have a list of shortcut icons to remove from the desktop.

The traditional way to remove a shortcut icon is to drag it to the Recycle Bin or press the Delete key.

But I've found using a process is the best way to automatically remove these pesky icons for you.

In this example I decided to remove the PDFCreator shortcut. It is normally created during installation in the All User Profile folder.

In the DS console is created a job called "Remove desktop icon" with a simple script as follows:

DEL /Q "%ALLUSERSPROFILE%\Desktop\PDFCreator.LNK" > NUL

In this example the icon PDFCreator is removed in a quiet mode from All Users profile. It takes just seconds and the deletion is done.

Comments

mb773's picture
15
May
2009
2 Votes +2
Login to vote

thx

Thanks riva! 

Gemme's picture
12
Oct
2009
1 Vote +1
Login to vote

 Interesting tip.

 Interesting tip.