Friday, December 14, 2007

Making it easier to change your hosts file on Vista

I many people are having problems editing their hosts file on Microsoft Vista. So I have written a simple application that helps you launch a notepad with the necessary elevated rights to edit your hosts file. Please download the installer from here. Or if you prefer, you may wish to inspect the source code and build the binaries yourself.

It isn't rocket science. The console application simply forks a process to execute notepad with elevated rights to edit your hosts file. This issue arises because of the new security features built into Vista (User Access Control or UAC). There is a manifest file that specifies that the application requires administrative rights.

Hope it's useful to you.

No comments: