Skip to content

Latest commit

 

History

History
103 lines (77 loc) · 2.15 KB

Set-AzureADUserPassword.md

File metadata and controls

103 lines (77 loc) · 2.15 KB
external help file Module Name online version schema
Microsoft.Open.AzureAD16.Graph.PowerShell.Custom.dll-Help.xml
AzureAD
2.0.0

Set-AzureADUserPassword

SYNOPSIS

Sets the password of a user.

SYNTAX

Set-AzureADUserPassword -ObjectId <String> -Password <SecureString> [-ForceChangePasswordNextLogin <Boolean>]
 [-EnforceChangePasswordPolicy <Boolean>] [<CommonParameters>]

DESCRIPTION

The Set-AzureADUserPassword cmdlet sets the password for a user in Azure Active Directory (AD).

EXAMPLES

Example 1: Set a user's password

PS C:\>Set-AzureADUserPassword -ObjectId  "df19e8e6-2ad7-453e-87f5-037f6529ae16" -Password $password

This command sets the specified user's password.

PARAMETERS

-EnforceChangePasswordPolicy

If set to true, force the user to change their password

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-ForceChangePasswordNextLogin

Forces a user to change their password during their next log in.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-ObjectId

Specifies the ID of an object.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Password

Specifies the password.

Type: SecureString
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS