Skip to content

Commit 09caa19

Browse files
emmanuel-karanjaKenitoInc
authored andcommitted
update tests del UPN
1 parent 4b7f3bb commit 09caa19

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

module/EntraBeta/customizations/Set-EntraBetaUserPassword.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
[System.Security.SecureString] $Password,
1818
[Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
1919
[System.Boolean] $EnforceChangePasswordPolicy
20-
[Parameter(ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
21-
[System.Boolean] $ForceChangePasswordNextSignInWithMfa
2220
)
2321
PROCESS {
2422
$params = @{}
@@ -88,7 +86,7 @@
8886
8987
$PasswordProfile = @{}
9088
if($null -ne $PSBoundParameters["ForceChangePasswordNextLogin"]) { $PasswordProfile["ForceChangePasswordNextSignIn"] = $ForceChangePasswordNextSignIn }
91-
if($null -ne $PSBoundParameters["EnforceChangePasswordPolicy"]) { $PasswordProfile["ForceChangePasswordNextSignInWithMfa"] = $ForceChangePasswordNextSignInWithMfa }
89+
if($null -ne $PSBoundParameters["EnforceChangePasswordPolicy"]) { $PasswordProfile["ForceChangePasswordNextSignInWithMfa"] = $EnforceChangePasswordPolicy }
9290
if($null -ne $PSBoundParameters["Password"]) { $PasswordProfile["password"] = $PlainPassword }
9391
9492
Write-Debug("============================ TRANSFORMATIONS ============================")

0 commit comments

Comments
 (0)