File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ function Invoke-CIPPStandardintuneRequireMFA {
36
36
} else {
37
37
try {
38
38
$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
41
41
New-GraphPostRequest - tenantid $tenant - Uri ' https://graph.microsoft.com/beta/policies/deviceRegistrationPolicy' - Type PUT - Body $NewBody - ContentType ' application/json'
42
42
Write-LogMessage - API ' Standards' - tenant $tenant - message ' Set required to use MFA when joining/registering Entra Devices' - sev Info
43
43
} catch {
You can’t perform that action at this time.
0 commit comments