Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

script to delete IE 64bit shortcut

Posted on 2014-02-24
4
Medium Priority
?
412 Views
Last Modified: 2014-03-10
I need to have a script I can push out to delete the IE 64 bit browser in Windows 7. Its in the c:\program files\internet explorer folder.

I tried using GPO in the Computer Config | Preferences | shorcuts section to delete it but it wont work.

Can someone give me the basic script to delete it completeley and not leave a unknown shortcut that doesnt point to anything. I can then push it using GPO or if you can help me get the GPO shortcuts to work that would be better. Thanks
0
Comment
Question by:Thomas N
4 Comments
 

Author Comment

by:Thomas N
ID: 39883781
I read you cant actually delete the 64 bit version. Is that correct? If not I just need something to delete the shortcut then.
0
 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 39885224
but does the shortcut reside in the same place on each pc ?

is it in Public Desktop , Default  ?    

right click the shortcut, and check the Details tab,  will say something like C:\users\Public\...
0
 
LVL 9

Expert Comment

by:VirastaR
ID: 39885771
Hi,

Did you try this before?

Remove a Desktop Shortcut with VBS

Thanks
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 2000 total points
ID: 39893565
You should be able to run this script as a logon script:
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
objFSO.DeleteFile objShell.ExpandEnvironmentStrings("APPDATA") & "\Microsoft\Windows\Start Menu\Programs\Internet Explorer (64-bit).lnk", True

Open in new window


Rob.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

916 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