Go Back   Tech Support Forum > Microsoft Support > Windows 7 Support, Windows Vista Support

deleted orginal windows host file

This is a discussion on deleted orginal windows host file within the Windows 7 Support, Windows Vista Support forums, part of the Tech Support Forum category. I downloaded an updated hosts file for vista and I had to run "mvps.bat" file to update, backup, and overwrite


Closed Thread
 
Thread Tools Search this Thread
Old 10-20-2010, 12:21 PM   #1
Registered Member
 
Join Date: Feb 2007
Posts: 158
OS: win xp



I downloaded an updated hosts file for vista and I had to run "mvps.bat" file to update, backup, and overwrite the original. It has been updated already, but stupidly I downloaded it again and replaced the current one and it deleted the original backup. Is there anyway to recover it? How important is the original and what entries were in it? Thanks

__________________
maxima2k2 is offline  
Old 10-20-2010, 02:40 PM   #2
Team Manager, Microsoft Support
Microsoft MVP
BSOD Kernel Dump Expert
 
jcgriff2's Avatar

Microsoft Most Valuable Professional
 
Join Date: Sep 2007
Location: BSOD CENTRAL
Posts: 30,630
OS: Windows 8.1, 7 + Windbg :)



Hi -

This is the content of the default HOSTS file -

Code:
# Copyright (c) 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:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1       localhost
::1             localhost
Copy/ paste it into a Notepad; save it to your Documents folder using the filename hosts.txt

To replace the HOSTS file with the default -
START | type cmd.exe | RIGHT-click on cmd.exe | select "Run as Administrator" | paste the followng command into the CMD/DOS screen -
Code:
copy "%userprofile%\documents\hosts.txt" %windir%\system32\drivers\etc\HOSTS
To verify the contents of the HOSTS file -
Code:
type %windir%\system32\drivers\etc\HOSTS > 0 & start notepad 0
A Notepad will open with the contents of the HOSTS file.

Regards. . .

jcgriff2

`
jcgriff2 is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2


All times are GMT -7. The time now is 01:22 AM.


Copyright 2001 - 2014, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts