#requires -version 2 <# .SYNOPSIS .DESCRIPTION .PARAMETER .INPUTS .OUTPUTS .log> .NOTES Version: 1.0 Author: Creation Date: Purpose/Change: Initial script development .EXAMPLE #> #---------------------------------------------------------[Initialisations]-------------------------------------------------------- #Set Error Action to Silently Continue $ErrorActionPreference = "SilentlyContinue" #Dot Source required Function Libraries . "C:\Scripts\Functions\Logging_Functions.ps1" #----------------------------------------------------------[Declarations]---------------------------------------------------------- #Script Version $sScriptVersion = "1.0" #Log File Info $sLogPath = "C:\Windows\Temp" $sLogName = ".log" $sLogFile = Join-Path -Path $sLogPath -ChildPath $sLogName #-----------------------------------------------------------[Functions]------------------------------------------------------------ <# Function { Param() Begin{ Log-Write -LogPath $sLogFile -LineValue "..." } Process{ Try{ } Catch{ Log-Error -LogPath $sLogFile -ErrorDesc $_.Exception -ExitGracefully $True Break } } End{ If($?){ Log-Write -LogPath $sLogFile -LineValue "Completed Successfully." Log-Write -LogPath $sLogFile -LineValue " " } } } #> #-----------------------------------------------------------[Execution]------------------------------------------------------------ #Log-Start -LogPath $sLogPath -LogName $sLogName -ScriptVersion $sScriptVersion #Script Execution goes here #Log-Finish -LogPath $sLogFile