Solved

script to delete IE 64bit shortcut

Posted on 2014-02-24
4
397 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 500 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

This article runs through the process of deploying a single EXE application selectively to a group of user.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn how to count occurrences of each item in an array.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

735 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