Archive: hosts file on x64 systems


hosts file on x64 systems
hey there, me again.

is it even possible to manipulate/append some text into the hosts ($SYSDIR\drivers\etc\hosts) file?
even if i run the installer as admin (per runas admin) it wont append any text to it.


any idea how to run a program within/after installer/ing with administrator privileges so that the second installer/ the program easily can update the hosts-file?

thx for help


This is one of the file that have special protection on modern Windows systems.

It's owned by a special "TrustedInstaller" user account, so only Windows own installer (and Windows updates) can modify that file.

And there is good reason for this ;)

AFAIK you can take ownership of such files with some ACL trickery and then modify them.

But first of all: Why do you want to modify that file ???


it'll change if I start an editor with administrative privileges. such as notepad per runas admin.

thought it'll work the same with installer has elevated rights.

modification is important bcause it comes with some filter software (such as childprotection, etc)