Solved

script to delete IE 64bit shortcut

Posted on 2014-02-24
4
376 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
Comment Utility
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)
Comment Utility
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
Comment Utility
Hi,

Did you try this before?

Remove a Desktop Shortcut with VBS

Thanks
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now