We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ece21ba commit e028cc8Copy full SHA for e028cc8
1 file changed
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