How to disable Internet Explorer in Windows XP.

You are here:  SillyDog701 > Message Centre > Windows (and Microsoft talk) > [sdt=2677]
SillyDog701 Forums
Author Message
DJGM
diamond member


Joined: 19 Jun 2002
Posts: 4387
Location: Manchester, England, UK
21 Jul, 2003 7:42 pm How to disable Internet Explorer in Windows XP. [sdp=14951]  

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:

@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:

@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)

SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!

Last edited by DJGM on 12 Dec, 2003 11:23 pm; edited 2 times in total
Back to top profile website
Mandrake
Moderator


Joined: 13 Sep 2002
Posts: 3920
21 Jul, 2003 9:46 pm [sdp=14960]  

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
Back to top profile
DJGM
diamond member


Joined: 19 Jun 2002
Posts: 4387
Location: Manchester, England, UK
22 Jul, 2003 1:14 pm [sdp=14972]  

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!
Back to top profile website
Mandrake
Moderator


Joined: 13 Sep 2002
Posts: 3920
31 Jul, 2003 6:28 am [sdp=15312]  

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
Back to top profile
kinmingman
new member

Michael
Joined: 13 Nov 2003
Posts: 1
13 Nov, 2003 12:38 pm [sdp=20758]  

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)
Back to top profile
Wellander
SUSPENDED


Joined: 21 Oct 2002
Posts: 2576
13 Nov, 2003 1:08 pm [sdp=20760]  

Misleading and dangerous information removed by moderator.

UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031113
Back to top profile
Mandrake
Moderator


Joined: 13 Sep 2002
Posts: 3920
13 Nov, 2003 5:53 pm [sdp=20789]  

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 14 Nov, 2003 6:46 am; edited once(1)
Back to top profile
Wellander
SUSPENDED


Joined: 21 Oct 2002
Posts: 2576
13 Nov, 2003 7:43 pm [sdp=20795]  

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)
Back to top profile
Mandrake
Moderator


Joined: 13 Sep 2002
Posts: 3920
13 Nov, 2003 8:44 pm [sdp=20802]  

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)
Back to top profile
Wellander
SUSPENDED


Joined: 21 Oct 2002
Posts: 2576
13 Nov, 2003 8:55 pm [sdp=20803]  

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
Back to top profile
DJGM
diamond member


Joined: 19 Jun 2002
Posts: 4387
Location: Manchester, England, UK
14 Nov, 2003 7:21 pm [sdp=20881]  

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!
Back to top profile website
Mandrake
Moderator


Joined: 13 Sep 2002
Posts: 3920
08 Jul, 2004 7:02 am [sdp=37697]  

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. Smile

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
Back to top profile
DJGM
diamond member


Joined: 19 Jun 2002
Posts: 4387
Location: Manchester, England, UK
08 Jul, 2004 8:12 am [sdp=37703]  

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!
Back to top profile website
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Forum Index > Windows (and Microsoft talk) All times are CST (GMT -6)
page 1 of 1
To add your questions, comments, and for more features and more, please join SillyDog701 Message Centre. It's free! This is SillyDog 701 Message Centre (SD701 Forums).

Apple iTunes Your favourite music, radio, music videos, TV shows, movies and more...
Download on iTunes

*Search | FAQ | Rules and Policies | MozInfo701 - Mozilla Information Centre | SD701 Open Directory | Message Board Map | download Netscape