From d31a0d3c0795df7f66dddc8f919392bb7b232433 Mon Sep 17 00:00:00 2001 From: Wes Kroesbergen Date: Tue, 22 Oct 2024 09:05:20 -0400 Subject: [PATCH] Update Get-EntraOpsClassificationControlPlaneObjects.ps1 Bugfix for the following error: Method invocation failed because [System.Management.Automation.PSObject] | does not contain a method named 'op_Addition'. --- .../Get-EntraOpsClassificationControlPlaneObjects.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EntraOps/Public/PrivilegedAccess/Get-EntraOpsClassificationControlPlaneObjects.ps1 b/EntraOps/Public/PrivilegedAccess/Get-EntraOpsClassificationControlPlaneObjects.ps1 index 0487f8b..b234479 100644 --- a/EntraOps/Public/PrivilegedAccess/Get-EntraOpsClassificationControlPlaneObjects.ps1 +++ b/EntraOps/Public/PrivilegedAccess/Get-EntraOpsClassificationControlPlaneObjects.ps1 @@ -134,6 +134,8 @@ function Get-EntraOpsClassificationControlPlaneObjects { $PrivilegedObject | Add-Member -MemberType NoteProperty -Name ClassificationSource -Value "EntraOps" -Force | Out-Null return $PrivilegedObject } + + $PrivilegedObjects += $EntraOpsObjectClassification $EntraOpsRoleClassification = $EntraOpsAllPrivilegedObjects | Where-Object { $_.Classification.AdminTierLevelName -contains "ControlPlane" } ` | ForEach-Object { @@ -144,7 +146,7 @@ function Get-EntraOpsClassificationControlPlaneObjects { return $PrivilegedObject } - $PrivilegedObjects += $EntraOpsObjectClassification + $EntraOpsRoleClassification + $PrivilegedObjects += $EntraOpsRoleClassification } } #endregion