Skip to content

Commit c3e68f9

Browse files
committed
fix intune registration mfa standard
1 parent f732b62 commit c3e68f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardintuneRequireMFA.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function Invoke-CIPPStandardintuneRequireMFA {
3636
} else {
3737
try {
3838
$NewSetting = $PreviousSetting
39-
$NewSetting.multiFactorAuthConfiguration = '1'
40-
$Newbody = ConvertTo-Json -Compress -InputObject $NewSetting
39+
$NewSetting.multiFactorAuthConfiguration = 'required'
40+
$Newbody = ConvertTo-Json -Compress -InputObject $NewSetting -Depth 10
4141
New-GraphPostRequest -tenantid $tenant -Uri 'https://graph.microsoft.com/beta/policies/deviceRegistrationPolicy' -Type PUT -Body $NewBody -ContentType 'application/json'
4242
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Set required to use MFA when joining/registering Entra Devices' -sev Info
4343
} catch {

0 commit comments

Comments
 (0)