rearrange for better logic flow

This commit is contained in:
2020-09-19 15:29:31 -04:00
parent 59801ddf92
commit 85f923f77d
+3 -3
View File
@@ -8,9 +8,6 @@ $MSPScripts = "${MSPRoot}\Scripts"
$MSPTools = "${MSPRoot}\Tools"
$MSPLogs = "${MSPRoot}\Logs"
## Set a datestamp for any log files that might need to be created
$LogFilePrefix = Get-Date -Format "yyyyMMddHHmmss"
## Make sure all the management directories exist
If ( !(Test-Path $MSPRoot) )
{ New-Item -Path $MSPRoot -ItemType Directory -Force -ErrorAction SilentlyContinue | Out-Null }
@@ -21,6 +18,9 @@ If ( !(Test-Path $MSPTools) )
If ( !(Test-Path $MSPLogs) )
{ New-Item -Path $MSPLogs -ItemType Directory -Force -ErrorAction SilentlyContinue | Out-Null }
## Set a datestamp for any log files that might need to be created
$LogFilePrefix = Get-Date -Format "yyyyMMddHHmmss"
## Function to log activity to the configured log directory
Function Log
{