Click here to get back home

How to remove Shortcut with script

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to remove Shortcut with script Tung Dang 03-16-2007
Posted by Tung Dang on March 16, 2007, 1:45 am
Please log in for more thread options
Hi, I was wondering how to remove a shortcut on everyone desktop using
script? Is there a tool that goes out and search on the network and remove
it those icon when it find it? Thanks



Posted by Special Access on March 16, 2007, 5:24 am
Please log in for more thread options
wrote:

>Hi, I was wondering how to remove a shortcut on everyone desktop using
>script? Is there a tool that goes out and search on the network and remove
>it those icon when it find it? Thanks
>

I used to use "if exist c:\documents and settings\all
users\desktop\<shortcutname.lnk> del c:\documents and settings\all
users\desktop\<shortcutname.lnk>"

Replace <shortcutname.lnk> with the name of the shortcut, for example
Acrobat Reader 8.0.lnk

enclose in quotes if there are any spaces, seemed to work for me.

Mike

Similar ThreadsPosted
Shortcut prompts with Run As dialogue every time October 7, 2005, 1:28 pm
Increase TS Security / Remove "shortcuts" October 13, 2005, 3:10 pm
Can't remove user from administrator group November 11, 2005, 2:47 pm
Remove List Folder access only? March 16, 2006, 2:18 am
Remove Certificate services (Root CA) November 1, 2007, 1:38 am
remove users from Administrator groups ? What should I know ? September 3, 2008, 10:48 am
Is it possible to remove an Enterprise CA from a Windows 2003 R2 domain? July 20, 2008, 1:08 am
Remove Administrator Rights from Folder in Win2k Server November 11, 2005, 9:44 am
Code to remove a user group from file or folder ACL March 22, 2006, 1:45 pm
Delegate Control to rename and add/remove computer from domain February 27, 2007, 4:05 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap