From 8e856d55884b364de91c85d4afe89e8bad90f28c Mon Sep 17 00:00:00 2001 From: "Thomas S. Schmidt" Date: Sat, 8 Mar 2025 13:19:47 +0100 Subject: [PATCH 1/2] Add SCC boolean to ORCA242 for easier handling of check output --- Checks/check-ORCA242.ps1 | 1 + ORCA.psm1 | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Checks/check-ORCA242.ps1 b/Checks/check-ORCA242.ps1 index 25006e3..e037763 100644 --- a/Checks/check-ORCA242.ps1 +++ b/Checks/check-ORCA242.ps1 @@ -26,6 +26,7 @@ class ORCA242 : ORCACheck $this.Links= @{ "Automated investigation and response in Microsoft 365 Defender"="https://learn.microsoft.com/en-us/microsoft-365/security/defender/m365d-autoir" } + $this.SCC=$True } <# diff --git a/ORCA.psm1 b/ORCA.psm1 index 74b5fde..71a6129 100644 --- a/ORCA.psm1 +++ b/ORCA.psm1 @@ -384,7 +384,9 @@ Class ORCACheck [Boolean] $CheckFailed = $false [String] $CheckFailureReason = $null - + + [Boolean] $SCC=$false + # Overridden by check GetResults($Config) { } From 3729fb551b23b46ce622eb675abfefefc6f836ca Mon Sep 17 00:00:00 2001 From: "Thomas S. Schmidt" Date: Sat, 8 Mar 2025 13:27:05 +0100 Subject: [PATCH 2/2] Fix indent --- Checks/check-ORCA242.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Checks/check-ORCA242.ps1 b/Checks/check-ORCA242.ps1 index e037763..d9f1789 100644 --- a/Checks/check-ORCA242.ps1 +++ b/Checks/check-ORCA242.ps1 @@ -26,7 +26,7 @@ class ORCA242 : ORCACheck $this.Links= @{ "Automated investigation and response in Microsoft 365 Defender"="https://learn.microsoft.com/en-us/microsoft-365/security/defender/m365d-autoir" } - $this.SCC=$True + $this.SCC=$True } <#