A number of different logging options are available. Logging to the screen, a text file and an HTML file are all enabled when the Enable Logging? option is checked. If E-mail Log? is checked, and the SMTP settings are filled out correctly, a copy of the HTML and the generated ZIP file with the GPO's is emailed.

Screen Logging - Self explanatory

Text File - A text file is created in the directory that the script is run with the following name:

$LogFile = $LogPath + "AD Setup $DNSDomain " + (Get-Date -format d).Replace("/","-") + " " + (Get-Date -format T).Replace(":","-") +".txt"

HTML File - A HTML file is created in the directory that the script is run with the following name:

$LogHTML = $LogPath + "AD Setup $DNSDomain " + (Get-Date -format d).Replace("/","-") + " " + (Get-Date -format T).Replace(":","-") +".HTML"

E-mail - An e-mail is sent using the parameters provided that includes the HTML log file and a ZIP file containing a backup of the GPO's as attachments.