Skip to content

Commit

Permalink
Merge pull request #1317 from Ren-Roros-Digital/PWdisplayAppInformati…
Browse files Browse the repository at this point in the history
…onRequiredState

fix: added feature state check to PWdisplayAppInformationRequiredState
  • Loading branch information
JohnDuprey authored Feb 25, 2025
2 parents 732be33 + 4de7484 commit ab5cf83
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function Invoke-CIPPStandardPWdisplayAppInformationRequiredState {
##$Rerun -Type Standard -Tenant $Tenant -Settings $Settings 'PWdisplayAppInformationRequiredState'

$CurrentState = New-GraphGetRequest -Uri 'https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/microsoftAuthenticator' -tenantid $Tenant
$StateIsCorrect = ($CurrentState.state -eq 'enabled')
$StateIsCorrect = ($CurrentState.state -eq 'enabled') -and
($CurrentState.featureSettings.numberMatchingRequiredState.state -eq 'enabled') -and
($CurrentState.featureSettings.displayAppInformationRequiredState.state -eq 'enabled')

If ($Settings.remediate -eq $true) {
if ($StateIsCorrect -eq $true) {
Expand Down

0 comments on commit ab5cf83

Please sign in to comment.