Update-EntraSignedInUserPassword
Updates the password for the signed-in user.
Syntax
Default (Default)
Update-EntraSignedInUserPassword
-NewPassword <SecureString>
-CurrentPassword <SecureString>
[<CommonParameters>]
Description
The Update-EntraSignedInUserPassword
cmdlet updates the password for the signed-in user in Microsoft Entra ID.
Enable users to update their own passwords. Any user can change their password without requiring administrator privileges.
Examples
Example 1: Update a password
Connect-Entra -Scopes 'Directory.AccessAsUser.All'
$currentPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
$newPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
Update-EntraSignedInUserPassword -CurrentPassword $currentPassword -NewPassword $newPassword
This example shows how to update the password for the signed-in user.
-CurrentPassword
parameter specifies the current password of the signed-in user.-NewPassword
parameter specifies the new password for the signed-in user.
Parameters
-CurrentPassword
Specifies the current password of the signed-in user.
Parameter properties
Type: | SecureString |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-NewPassword
Specifies the new password for the signed-in user.
Parameter properties
Type: | SecureString |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Notes
- For more information, see changePassword.