adding a port entry into c:\windows\system32\drivers\etc\services

I am writing a batch file to bring together the various exe running and file copy procedures of installing an application. One of the stages involdes adding the entry ;
esri_sde 5151/tcp #Reference to Grouch SDE
at the end of c:\windows\system32\drivers\etc\services
Is there a simple way of scripting this?

Can I legally transfer my OEM version of Windows to another PC? (AKA - Can I put a new systemboard in my OEM PC?)
Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply. There are…

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month.
Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…