Hello,
I am trying to edit the hosts file at login to add a single line to the file. My problem is that I require elevated privileges to edit the file as local administrators are the only users with permission to change / edit this file. I have tried having a small program executed as part of the logon process that calls another program using RunWithLogon but cannot get past error 1932 which talks about the Elevated Privilege requirement. I have also tried ShellExecute as mentioned in the error message but am not sure I understand the concept or how to make it work as an elevated task.
Any help would be appreciated.
Fred