From 9586ffb3faeb0e95219785b1247847b714bd19f1 Mon Sep 17 00:00:00 2001 From: Mikael Karlsson <43226266+Micke-K@users.noreply.github.com> Date: Tue, 17 Jun 2025 02:04:35 +1000 Subject: [PATCH] 3.10.0.5 Removed deviceStates property for Conditional Access policy import. The property is depricated --- Extensions/EndpointManager.psm1 | 6 ++++++ Extensions/MSALAuthentication.psm1 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Extensions/EndpointManager.psm1 b/Extensions/EndpointManager.psm1 index e3f3897..866eefc 100644 --- a/Extensions/EndpointManager.psm1 +++ b/Extensions/EndpointManager.psm1 @@ -3951,6 +3951,12 @@ function Start-PreImportConditionalAccess { $obj.sessionControls.disableResilienceDefaults = $null } + + # DeviceStates property is depricated + if(($obj.conditions.PSObject.Properties | Where Name -eq "DeviceStates")) + { + $obj.conditions.PSObject.Properties.Remove('DeviceStates') + } } function Start-PostExportConditionalAccess diff --git a/Extensions/MSALAuthentication.psm1 b/Extensions/MSALAuthentication.psm1 index 5179a0a..bd47dd8 100644 --- a/Extensions/MSALAuthentication.psm1 +++ b/Extensions/MSALAuthentication.psm1 @@ -130,11 +130,11 @@ function Invoke-InitializeModule }) "MSAL" Add-SettingsObject (New-Object PSObject -Property @{ - Title = "Use WAM for eahanced login methods" + Title = "Use WAM for enhanced login methods" Key = "UseWAM" Type = "Boolean" DefaultValue = $false - Description = "Use WAM for eahanced login methods" + Description = "Use WAM for enhanced login methods" }) "MSAL" $script:MSALUseWAM = Get-SettingValue "UseWAM"