Updating windows hosts file

posted by | Leave a comment

On a linux machine, I would just remove the offending line from Had a similar issue not fixed with the user profile's known_hosts, so for anyone looking: If you have installed git, Tortoise Git, etc on Windows, the location of the overriding known_hosts file is in your git folder, e.g. As per the error message open the known_hosts file in an editor like Sublime with admin rights, remove the corresponding entry for your server in Programs/Git/.ssh/known_hosts and the new key fingerprint will get added on the next connection.

ren c:\windows\system32\drivers\etc\hosts C:\windows\system32\drivers\etc\hosts_original copy \Server Name\Share Name\Hosts c:\windows\system32\drivers\etc\ /Y Create Computer GPO with start up script (Computer Start up GPO is better than User login script as the users will NOT need Administrative privileges) Reboot the computer - the desired hosts file should be working after Computer GPO executes.

so i need to modify the host file with the new ip by batch file and i find a solution and i will attach bellow but i need it to resolve the host ip and type it in the batch automatically , any idea?

#################### @echo off SET NEWLINE=^& echo.

If you are also facing a similar problem, you should check the hosts file and make sure it contains the default values.

To reset hosts file to default, you can follow these simple steps: 1.

Leave a Reply

Free teen online sex dating