Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


My Security Shield removal unable to delete HOSTS file

  • Please log in to reply
3 replies to this topic

#1 Kimbellina


  • Members
  • 1 posts
  • Local time:02:29 AM

Posted 06 March 2011 - 02:05 PM

Hello - this morning I clicked on an image online and ended up with the My Security Shield infection. I successfully went through the removal process as recommended by bleepingcomputer - but have been unable to complete the last step - deleting the HOSTS file. Can someone help me with this? I just went to the cmd prompt and typed in del c:\windows\system32\drivers\etc\HOSTS and was denied. What should I try next?

Thanks so much!

BC AdBot (Login to Remove)


#2 MrBruce1959


    My cat Oreo

  • BC Advisor
  • 6,377 posts
  • Gender:Male
  • Location:Norwich, Connecticut. in the USA
  • Local time:06:29 AM

Posted 06 March 2011 - 03:37 PM

First off any time you use the cmd prompt you have to right click cmd.exe and choose Run as Administrator

You can navigate there manually by following the path you typed which is:


If you delete this you can make a new hosts file in note pad.

create a note pad file inside of it copy and paste the following text.

# Copyright © 1993-2009 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# rhino.acme.com # source server
# x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# localhost
# ::1 localhost

Name the file HOSTS without an extension, in other words it does not need .txt in the name.

Place the new HOSTS file in your etc folder.

Welcome to Bleeping Computer! :welcome:
New Members: Please click here for the Bleeping Computer Forum Board Rules
My Career Involves 37 Years as an Electronics Repair Technician, to Which I am Currently Retired From.

I Am Currently Using Windows 10 Home Edition.

As a Volunteer Staff Member of Bleeping Computer, the Help That I Proudly Provide Here To Our BC Forum Board Membership is Free of Charge. :wink:

#3 Union_Thug


    Bleeps with the fishes...

  • Members
  • 2,355 posts
  • Gender:Male
  • Location:is everything
  • Local time:06:29 AM

Posted 06 March 2011 - 03:42 PM

If a program that you are trying to run is giving you a Access Denied or No Permission error, then running it as an administrator can usually give the program the permission it needs to run properly.

How to Open a Elevated Command Prompt in Windows 7 http://www.sevenforums.com/tutorials/783-elevated-command-prompt.html
How do I reset the hosts file back to the default? http://support.microsoft.com/kb/972034#top

Edited by Union_Thug, 06 March 2011 - 03:47 PM.

#4 Broni


    The Coolest BC Computer

  • BC Advisor
  • 42,738 posts
  • Gender:Male
  • Location:Daly City, CA
  • Local time:03:29 AM

Posted 06 March 2011 - 03:59 PM

Take ownership of "hosts" file: http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/

My Website

My help doesn't cost a penny, but if you'd like to consider a donation, click DONATE


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users