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"