【发布时间】:2019-02-08 14:51:36
【问题描述】:
我正在寻找一种通过 PowerShell 在 Azure 中更改我的(登录)密码的方法。 由于缺少权限,我只能访问自己的帐户,并且无法使用任何主体或 Azure Active Directory。
因为我能够通过 Azure 门户在 Profile 上手动更改密码并更改密码,所以我确信必须有一种方法通过 PowerShell 来自动执行此过程。
我已经试过了:
MSOnlineExtended\Set-MsolUserPassword -UserPrincipalName $user -NewPassword $pwd -ForceChange
但由于缺少权利,这不起作用。
【问题讨论】:
标签: azure powershell azure-powershell azure-cloud-shell