Skip to content

Commit 5812a94

Browse files
committed
updated init modules and scan functions
1 parent e8f1f12 commit 5812a94

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

core/init/New-O365Object.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ Function New-O365Object{
306306
throw ("{0} diagnostic settings file does not exists" -f $json_path)
307307
}
308308
$diag_settings_json = (Get-Content $json_path -Raw) | ConvertFrom-Json
309+
#Get L2Extensions
310+
$json_path = ("{0}/core/utils/extensions/l2extensions.json" -f $ScriptPath)
311+
If (!(Test-Path -Path $json_path)){
312+
throw ("{0} l2 extensions file was not found" -f $json_path)
313+
}
314+
$l2Extensions = (Get-Content $json_path -Raw) | ConvertFrom-Json
309315
############ Get Ruleset info ################
310316
$ruleSet = $rulesPath = $null;
311317
#Get ruleset
@@ -475,7 +481,7 @@ Function New-O365Object{
475481
MaxQueue = $internal_config_json.performance.nestedRunspaces.MaxQueue;
476482
nestedRunspaces = @{
477483
BatchSleep = ($internal_config_json.performance.BatchSleep * 2);
478-
BatchSize = ($internal_config_json.performance.BatchSize * 2);
484+
BatchSize = ($internal_config_json.performance.BatchSize / 2);
479485
MaxQueue = $internal_config_json.performance.nestedRunspaces.MaxQueue;
480486
}
481487
nestedRunspaceMaxThreads = $nestedMaxThreads;
@@ -490,6 +496,7 @@ Function New-O365Object{
490496
ruleset = $ruleSet;
491497
rulesPath = $rulesPath;
492498
Compress = $MyParams.Compress;
499+
l2Extensions = $l2Extensions;
493500
}
494501
#Create new object
495502
$MonkeyObj = New-Object -TypeName PSCustomObject -Property $tmp_object

0 commit comments

Comments
 (0)