File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
module/EntraBeta/customizations Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 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
2022 )
2123 PROCESS {
2224 $params = @{}
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ Describe "Set-EntraBetaUserPassword" {
9494 $secPassword = ConvertTo-SecureString $newPassword - AsPlainText - Force
9595 $result = Set-EntraBetaUserPassword - UserId $userUPN - Password $secPassword - ForceChangePasswordNextLogin $true - EnforceChangePasswordPolicy $true
9696 $result | Should - BeNullOrEmpty
97- $userAgentHeaderValue = " PowerShell/$psVersion EntraPowershell/$entraVersion Set-EntraUserPassword "
97+ $userAgentHeaderValue = " PowerShell/$psVersion EntraPowershell/$entraVersion Set-EntraBetaUserPassword "
9898 Should - Invoke - CommandName Update-MgUser - ModuleName Microsoft.Graph.Entra.Beta - Times 1 - ParameterFilter {
9999 $Headers .' User-Agent' | Should - Be $userAgentHeaderValue
100100 $true
You can’t perform that action at this time.
0 commit comments