Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > WinFX General

Problem Modify hosts file in Windows Vista

 
 
Thread Tools Display Modes
Old 06-13-2006   #1 (permalink)
MyWebTV
Guest


 

Problem Modify hosts file in Windows Vista

I can't make any change to the hosts file in Windows Vista. Is any one know
how to do it ? Thx
Old 06-13-2006   #2 (permalink)
Zack Whittaker
Guest


 

Re: Problem Modify hosts file in Windows Vista

Check the properties, take ownership of it and make sure it's not read-only.

--
Zack Whittaker
» ZackNET Enterprises: www.zacknet.co.uk
» MSBlog on ResDev: www.msblog.org
» Vista Knowledge Base: www.vistabase.co.uk
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
that up!

--: Original message follows :--
"MyWebTV" <MyWebTV@discussions.microsoft.com> wrote in message
news:6805C138-5306-4305-9626-BF2B47713702@microsoft.com...
>I can't make any change to the hosts file in Windows Vista. Is any one know
> how to do it ? Thx



Old 10-08-2007   #3 (permalink)
Newbie


  Nilesh is offline

Re: Problem Modify hosts file in Windows Vista

You will have to take ownership of the file u want to modify.

Step 1:
Open Command Prompt with Administrators rights and run
takeown /f C:\WINDOWS\system32\drivers\etc\hosts

Step 2:
Run
cacls C:\WINDOWS\system32\drivers\etc\hosts /G username:F
Please replace username with ur logged in user name.

Step 3:
Make sure that "hosts" file is not readonly.

Step 4:
Open the host file in Notepad and modify it.

Hope this works for u
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows hosts file and Norton (NIS 2008) Lazaruslong Vista security 0 4 Weeks Ago 07:13 PM
quirky problem with hosts file 1234vista1234 Vista account administration 0 05-28-2008 01:19 PM
Hosts file problem kikiferovac Vista General 2 05-18-2008 12:30 PM
Hosts file in Vista SK Vista file management 2 05-25-2006 08:08 AM
Hosts file in Vista SK Vista security 4 05-25-2006 08:08 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50