How to disable Internet Explorer in Windows XP.

Microsoft Windows operating system, and software for Windows platform, including QuickTime Player and iTunes for Windows. We also discuss topics about Microsoft Corp.

Moderators: Josh, Don_HH2K, Mandrake

How to disable Internet Explorer in Windows XP.

Postby DJGM » Mon 21 Jul, 2003 8:42 pm

Here's a useful tip I've found in the MozillaZine forums for disabling IE in Windows XP . . .

:arrow: Open up Notepad
:arrow: Cut and paste the following into the empty Notepad window:

Code: Select all
@echo off
C:
cd "\Program Files\Internet Explorer"
if not exist IEXPLORE.EXE goto End
if exist IEXPLORE.EX_ del IEXPLORE.EX_
if not exist IEXPLORE.DIR md IEXPLORE.DIR
if not exist IEXPLORE.DIR goto End
attrib -r -h -s IEXPLORE.EXE
ren IEXPLORE.EXE IEXPLORE.EX_
if exist IEXPLORE.EXE goto End
ren IEXPLORE.DIR IEXPLORE.EXE
echo IE disabled.
echo If prompted, click "Cancel" then "Yes" on File Protection restore.
echo Run enable-ie.bat to allow IE to run again.
:End


(The above code assumes your Windows XP is installed to your C:\ drive. If it
isn't, change the C: beneath @echo off to the drive letter corresponding to
whichever HDD or drive partition that you have Windows XP installed to

:arrow: Now save text file this as "disable-ie.bat" to your desktop, or elsewhere.
:arrow: Double click on the saved "disable-ie.bat" file.

("Windows File Protection" will most likely kick in at this point, with a warning dialog
box, saying some system files have been replaced with unrecognised versions, and
to insert your Windows XP CD to restore them. Don't worry, it's safe to ignore this.)

Now, everytime you try to open IE, all you'll get is an empty IE window. You need not
even reboot your PC for these changes to take effect. The effects are instantaneous.

If at any time, you decide you want to re-enable IE, follow these instructions to create
another batch file that reverses the changes made by the aforementioned batch file:

Code: Select all
@echo off
C:
cd "\Program Files\Internet Explorer"
if not exist IEXPLORE.EX_ goto End
if not exist IEXPLORE.EXE goto Activate
attrib -r -h -s IEXPLORE.EXE
rd IEXPLORE.EXE
if exist IEXPLORE.EXE del IEXPLORE.EXE
:Activate
ren IEXPLORE.EX_ IEXPLORE.EXE
echo IE enabled.
:End


Save this as "enable-ie.bat" and put it in the same place as "disable-ie.bat"

As before, this assumes you have Windows XP installed on your C:\ drive. Again, if your
copy of Windows XP is not on the C:\ drive, make the same changes I explained earlier.


DISCLAIMER:
These methods for disabling (and re-enabling) IE have only been tested on Windows XP. They may or
may not work on other versions of Windows, such as Windows 2000/NT/9x. If you have some other
version of Windows, feel free to try these batch files on whatever non-XP version of Windows you
currently have installed, but you do so at your own risk. I cannot take any responsibility for any
damage or data loss these batch files may cause to your installation of Windows. Whatever
version of Windows, it's advisable to backup your data before you use these batch files.

FOOTNOTE - added 31/08/2003:
Keep reading the rest of the thread, it seems these batch files work on Windows 2000 as well!

FOOTNOTE - added 13/12/2003:
This method for disabling IE also works on Windows 2000.




Click here for the MozillaZine forum thread where I found this information.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
Last edited by DJGM on Sat 13 Dec, 2003 12:23 am, edited 2 times in total.
SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!
User avatar
DJGM
diamond member
diamond member
 
Posts: 4550
Joined: Wed 19 Jun, 2002 1:03 pm
Location: Manchester, England, UK

Postby Mandrake » Mon 21 Jul, 2003 10:46 pm

An easier way would just be to disable MSHTML.DLL in NT4, Windows 2000 and XP (Pro only). This should be in the Windows forum, shouldn't it?
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/20020611
Core i7 920 | ASUS P6T Deluxe v2 | 3TB+ HDD | 12GB Corsair DDR3 | Radeon 4890 Xfire | X-Fi Titanium Fatal1ty | Logitech Z-5500 Speakers | Dell 3008WFP | Seven RC1
User avatar
Mandrake
Moderator
Moderator
 
Posts: 4160
Joined: Fri 13 Sep, 2002 6:35 am

Postby DJGM » Tue 22 Jul, 2003 2:14 pm

Disabling MSHTML.DLL isn't necessarily easier, unless you know the precise
location of that particular file. Eitherway, Windows XP Home Edition doesn't
give you the option to disable MSHTML.DLL, whereas XP Professional does.
Meanwhile, these batch files will work in both XP Home and Professional.

I'll be testing them both on Windows 2000 and NT4.0 later tonight . . .
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6
SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!
User avatar
DJGM
diamond member
diamond member
 
Posts: 4550
Joined: Wed 19 Jun, 2002 1:03 pm
Location: Manchester, England, UK

Postby Mandrake » Thu 31 Jul, 2003 7:28 am

I just tried this on Win2k Pro, works like a charm - even better in conjunction with the MSHTML.DLL trick. In NT4 and Win2k the file is located in C:\WINNT\SYSTEM32\MSHTML.DLL, in WinXP (Pro only!) in C:\WINDOWS\SYSTEM32\MSHTML.DLL (It doesn't work in 95/98/Me) you just remove all the privledges for all users, and IE can no longer access the internet.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Core i7 920 | ASUS P6T Deluxe v2 | 3TB+ HDD | 12GB Corsair DDR3 | Radeon 4890 Xfire | X-Fi Titanium Fatal1ty | Logitech Z-5500 Speakers | Dell 3008WFP | Seven RC1
User avatar
Mandrake
Moderator
Moderator
 
Posts: 4160
Joined: Fri 13 Sep, 2002 6:35 am

Postby kinmingman » Thu 13 Nov, 2003 1:38 pm

Mandrake wrote:I just tried this on Win2k Pro, works like a charm - even better in conjunction with the MSHTML.DLL
trick. In NT4 and Win2k the file is located in \WINNT\SYSTEM32\MSHTML.DLL, in WinXP (Pro only!)
in \WINDOWS\SYSTEM32\MSHTML.DLL (It doesn't work in 95/98/Me) you just remove all the
privledges for all users, and IE can no longer access the internet.


HI Mandrake, I just join the membership because I have interesed in your message. I'm using xp pro, how
could I disable mshtml.dll file? I tried to right click the file, it didn t have a option to disable or to remove
all the privledges for all users. I wanna disable all users using xp pro to use the internet but some of
programs need the connection. I also tried to use the batch file to disable the iexplore.exe file, it
works. However, I still can open Window Explorer to type in internet domain name in the address
bar to surf the internet. In case, if I could disable the mshtml.dll file. do you think the internet
browsing still work on Window Explorer??

Thank You


EDIT by DJGM (Moderator)
For some reason, the "quote" feature isn't working here! What gives?
ADDED by Admin,
You need to untick "Disable BBCode in this post"
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
kinmingman
new member
new member
 
Posts: 1
Joined: Thu 13 Nov, 2003 1:15 pm

Postby Wellander » Thu 13 Nov, 2003 2:08 pm

Misleading and dangerous information removed by moderator.
UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031113
Wellander
diamond member
diamond member
 
Posts: 2603
Joined: Mon 21 Oct, 2002 6:37 pm

Postby Mandrake » Thu 13 Nov, 2003 6:53 pm

Wellander,

Stop Posting misleading information! Deleting essential operating system files can stop your OS from working at all, if you are not very careful!
I certainly do not reccommend removing this. If you have programs like MS Office, they WILL NOT work if you do that!



Disable "simple file sharing", then you should have the options needed to disable access to MSHTML.DLL. You also need to be logged on as a member of the Administrators group, under XP Pro.
UserAgent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.5) Gecko/20031016 K-Meleon/0.8
Last edited by Mandrake on Fri 14 Nov, 2003 7:46 am, edited 1 time in total.
User avatar
Mandrake
Moderator
Moderator
 
Posts: 4160
Joined: Fri 13 Sep, 2002 6:35 am

Postby Wellander » Thu 13 Nov, 2003 8:43 pm

Mandrake wrote:Wellander,

Stop Posting misleading information! Deleting essential operating system files can stop your OS from working at all, if you are not very careful!

I certainly do not reccommend removing this. If you have programs like MS Office, they WILL NOT work if you do that!

Disable "simple file sharing", then you should have the options listed. You also need to be logged on as a member of the Administrators group, under XP Pro.


Hi,
It is not misleading info Theat is how I can get I.E. to stop working in windows 9x.
Also I use Office 97 which does not apprear to need that file it works fine with out it.
UserAgent: Mozilla/4.79 [en] (Win98; U)
Wellander
diamond member
diamond member
 
Posts: 2603
Joined: Mon 21 Oct, 2002 6:37 pm

Postby Mandrake » Thu 13 Nov, 2003 9:44 pm

Under 9x it is possible to totally remove IE safely, it is not a good idea to just go around deleting system files. If you wish to remove IE from 9x, I reccommend you download the free copy of 98lite Trial, and install 98/Me that way, and not install IE from the start.

Office 97 didn't require IE components, whereas Office 2000, XP and 2003 do.
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)
User avatar
Mandrake
Moderator
Moderator
 
Posts: 4160
Joined: Fri 13 Sep, 2002 6:35 am

Postby Wellander » Thu 13 Nov, 2003 9:55 pm

Mandrake wrote:Under 9x it is possible to totally remove IE safely, it is not a good idea to just go around deleting system files. If you wish to remove IE from 9x, I reccommend you download the free copy of 98lite Trial, and install 98/Me that way, and not install IE from the start.

Office 97 didn't require IE components, whereas Office 2000, XP and 2003 do.



More misleading and inaccurate information deleted by moderator.
UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031113
Wellander
diamond member
diamond member
 
Posts: 2603
Joined: Mon 21 Oct, 2002 6:37 pm

Postby DJGM » Fri 14 Nov, 2003 8:21 pm

Due to a number of repeated instances of misleading, inaccurate, and irresponsible information
being posted in this thread by one person, that could bring the SillyDog 701 Message Centre
into disrepute, this thread will now be closed, so that no further posts can be submitted.

The thread will however keep it's
Sticky status, and kept here for reference purposes only.

Meanwhile . . . thread closed.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20031008
SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!
User avatar
DJGM
diamond member
diamond member
 
Posts: 4550
Joined: Wed 19 Jun, 2002 1:03 pm
Location: Manchester, England, UK

Postby Mandrake » Thu 08 Jul, 2004 8:02 am

I have found the best way yet to disable IE. This will allow you to disable Internet Explorer for general browsing, but still have it work for WindowsUpdate.

:arrow: First open IE, and open the options screen by clicking on 'Tools' at the top of the screen and clicking on 'Options'.,

:arrow: Click the 'Connections' tab at the top of the new options window that has appeared.

:arrow: Click the 'LAN Settings' button that is towards the bottom of the options window.

:arrow: Check the box that says 'Use a proxy server for your LAN'.

:arrow: In the 'Address' field, enter anything - I put 'fakeproxy'.

:arrow: Click the 'Advanced' button, then in the 'exceptions' text box enter '*.microsoft.com' and then click OK.

Now IE will only function on pages at Microsoft.com, and WindowsUpdate. :)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616
Core i7 920 | ASUS P6T Deluxe v2 | 3TB+ HDD | 12GB Corsair DDR3 | Radeon 4890 Xfire | X-Fi Titanium Fatal1ty | Logitech Z-5500 Speakers | Dell 3008WFP | Seven RC1
User avatar
Mandrake
Moderator
Moderator
 
Posts: 4160
Joined: Fri 13 Sep, 2002 6:35 am

Postby DJGM » Thu 08 Jul, 2004 9:12 am

There's no need to open IE to do this. You can get to "Internet Options" via the Control Panel . . .
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!
User avatar
DJGM
diamond member
diamond member
 
Posts: 4550
Joined: Wed 19 Jun, 2002 1:03 pm
Location: Manchester, England, UK


Return to Windows (and Microsoft talk)

Who is online

Registered users: No registered users