Summary
In this chapter, you successfully learned the three core components of the scripting template. The first component is defining a script structure. You learned of all the required locations for the individual scripting components. You then learned how to write a comment block and the proper documentation to include in the comment block itself. Finally, you learned how to create a logging mechanism for your scripts. You started by learning how to create a time-stamped log
file, followed by learning how to create a data collection CSV file, and then how to create a new event log source. Finally, you put all the components together to create a function named log
.
In the next chapter, you will explore answer files and exclusion lists for your scripts.