open hosts file as administrator windows 10 code example Example: driver hosts file C:\Windows\System32\Drivers\etc\hosts