Set-EntraSignedInUserPassword

サインインしているユーザーのパスワードを更新します。

構文

Default (既定)

Set-EntraSignedInUserPassword

    -NewPassword <SecureString>
    -CurrentPassword <SecureString>
    [<CommonParameters>]

説明

エイリアスUpdate-EntraSignedInUserPasswordを持つSet-EntraSignedInUserPassword コマンドレットは、Microsoft Entra IDでサインインしているユーザーのパスワードを更新します。

ユーザーが自分のパスワードを更新できるようにします。 すべてのユーザーは、管理者特権を必要とせずにパスワードを変更できます。

例 1: パスワードを更新する

Connect-Entra -Scopes 'Directory.AccessAsUser.All'
$currentPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
$newPassword = ConvertTo-SecureString '<strong-password>' -AsPlainText -Force
Set-EntraSignedInUserPassword -CurrentPassword $currentPassword -NewPassword $newPassword

この例では、サインインしているユーザーのパスワードを更新する方法を示します。

  • -CurrentPassword パラメーターは、サインインしているユーザーの現在のパスワードを指定します。
  • -NewPassword パラメーターは、サインインしているユーザーの新しいパスワードを指定します。

パラメーター

-CurrentPassword

サインインしているユーザーの現在のパスワードを指定します。

パラメーターのプロパティ

型:SecureString
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-NewPassword

サインインしているユーザーの新しいパスワードを指定します。

パラメーターのプロパティ

型:SecureString
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

メモ

  • 詳細については、 changePassword を参照してください。