added 112 - 114
This commit is contained in:
@@ -108,6 +108,11 @@ function Invoke-ScriptAutomationMonkey {
|
||||
|
||||
# Load tasks
|
||||
$Global:SamyTasks = Get-SamyTasks -Url $Script:SamyTasksUrl
|
||||
|
||||
# Test Prove task Loaded Diagnostics
|
||||
Write-LogHybrid "Tasks loaded: $(@($Global:SamyTasks).Count)" Info Startup -LogToEvent
|
||||
Write-LogHybrid ("Tasks by page: " + ((@($Global:SamyTasks) | Group-Object Page | ForEach-Object { "$($_.Name)=$($_.Count)" }) -join ', ')) Info Startup -LogToEvent
|
||||
|
||||
if (-not $Global:SamyTasks) {
|
||||
throw "SAMY cannot continue: failed to load tasks from $Script:SamyTasksUrl"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user