We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ef91a5 commit 1c9dd3aCopy full SHA for 1c9dd3a
module/EntraBeta/customizations/Set-EntraBetaUserPassword.ps1
@@ -86,7 +86,7 @@
86
87
$PasswordProfile = @{}
88
if($null -ne $PSBoundParameters["ForceChangePasswordNextLogin"]) { $PasswordProfile["ForceChangePasswordNextSignIn"] = $ForceChangePasswordNextSignIn }
89
- if($null -ne $PSBoundParameters["EnforceChangePasswordPolicy"]) { $PasswordProfile["ForceChangePasswordNextSignInWithMfa"] = $true }
+ if($null -ne $PSBoundParameters["EnforceChangePasswordPolicy"]) { $PasswordProfile["ForceChangePasswordNextSignInWithMfa"] = $EnforceChangePasswordPolicy" }
90
if($null -ne $PSBoundParameters["Password"]) { $PasswordProfile["password"] = $PlainPassword }
91
92
Write-Debug("============================ TRANSFORMATIONS ============================")
0 commit comments