These template files are read into memory, by the script, modified and then written to the users profile to produce the required Outlook Signature files.
One of the main reasons I use template files rather than outputting the raw formating direct from the script is the requirement to generate an RTF signature file. I really couldn’t face trying to learn the RTF specification when I can just use Word 2007 to do the heavy lifting for me.
If you already know the specification or are having trouble sleeping then feel free to take my script and write an RTF generator. I could have probably written the script to generate the HTML but I use the HTML template file to generate the RTF template from within Word 2007. The template files have place holders within them for each element of the template that needs to be updated.
So all the script has to do is load the template files into a string variable and do a find and replace on the place holders to produce the required content. During my testing that has proved to be sufficiently quick for a normal logon process.
The text signature file is generated from scratch within the script without using a template file.