Quote:

Every user has local admin rights,




Man that's scary.

Another approach to 'put it in an array and write it back' is to create a new file on your server with the correct first line.

Then use KiX to rename hte existing file, copy over the new 'header file' then pipe the contents of the 'old' file in.

This way may be easier (I used something similar to reset NT host files)
If you need some code let me know and I'll post it (it's at work and I'm not)

acmp<><
_________________________
Every day is a school day