Update-AzureADSignedInUserPassword

更新已登入用戶的密碼。

語法

Update-AzureADSignedInUserPassword
      -CurrentPassword <SecureString>
      -NewPassword <SecureString>
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [<CommonParameters>]

Description

Update-AzureADSignedInUserPassword Cmdlet 會更新 Azure Active Directory (AD) 中已登入用戶的密碼。

範例

範例 1:更新密碼

PS C:\>Update-AzureADSignedInUserPassword -CurrentPassword $CurrentPassword -NewPassword $NewPassword

此命令會更新已登入用戶的密碼。

參數

-CurrentPassword

指定登入使用者的目前密碼。

類型:SecureString
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-InformationAction

指定此 Cmdlet 如何回應資訊事件。 此參數可接受的值為:

  • 繼續
  • 忽略
  • 詢問
  • SilentlyContinue
  • Stop
  • 暫止
類型:ActionPreference
別名:infa
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InformationVariable

指定資訊變數。

類型:String
別名:iv
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-NewPassword

指定登入使用者的新密碼。

類型:SecureString
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False