rearrange for better logic flow
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user