From 673a5fea2f1f86f4fa5d636c3166b656fc1760bb Mon Sep 17 00:00:00 2001 From: Esco Date: Fri, 20 Sep 2024 13:04:48 +0200 Subject: [PATCH] fix SPDirectSharing CurrentState match --- .../Public/Standards/Invoke-CIPPStandardSPDirectSharing.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSPDirectSharing.ps1 b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSPDirectSharing.ps1 index eace18c05e14..e27cc33a94ee 100644 --- a/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSPDirectSharing.ps1 +++ b/Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSPDirectSharing.ps1 @@ -34,7 +34,7 @@ function Invoke-CIPPStandardSPDirectSharing { $CurrentState = Get-CIPPSPOTenant -TenantFilter $Tenant | Select-Object -Property DefaultSharingLinkType - $StateIsCorrect = ($CurrentState.DefaultSharingLinkType -eq 'Direct') + $StateIsCorrect = ($CurrentState.DefaultSharingLinkType -eq 'Direct' -or $CurrentState.DefaultSharingLinkType -eq 1) if ($Settings.remediate -eq $true) { if ($StateIsCorrect -eq $true) {