Article ID: 923947 - View products that this article applies to.

Support for Windows Vista without any service packs installed ended on April 13, 2010. To continue receiving security updates for Windows, make sure you're running Windows Vista with Service Pack 2 (SP2). For more information, refer to this Microsoft web page: Support is ending for some versions of Windows

Expand all | Collapse all

SYMPTOMS

When you try to change the Hosts file or the Lmhosts file in Microsoft Windows Vista, or Windows 7, you may receive an error message that resembles either of the following.

Error message 1

Access to C:\Windows\System32\drivers\etc\ hosts was denied

Error message 2

Cannot create the C:\Windows\System32\drivers\etc\hosts file.
Make sure that the path and file name are correct.
This issue occurs even though you log on by using an account that has administrative credentials.

WORKAROUND

To work around this issue, follow these steps:
  1. Click Start
    Collapse this imageExpand this image
     Start button
    , click All Programs, click Accessories, right-click Notepad, and then click Run as administrator.

    Collapse this imageExpand this image
     User Account Control permission
    If you are prompted for an administrator password or for a confirmation, type the password, or click Allow or Yes.
  2. Open the Hosts file or the Lmhosts file, make the necessary changes, and then click Save on the Edit menu. If using Windows 7, you will need to click Save on the File menu.

Properties

Article ID: 923947 - Last Review: February 7, 2007 - Revision: 2.13
APPLIES TO
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Starter
  • Windows Vista Ultimate
  • Windows 7 Enterprise
  • Windows 7 Enterprise N
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Home Premium N
  • Windows 7 Professional
  • Windows 7 Professional N
  • Windows 7 Starter
  • Windows 7 Starter N
  • Windows 7 Ultimate
  • Windows 7 Ultimate N
Keywords: 
kbmsnclientportal kbtshoot kbprb kbexpertiseinter KB923947

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com