在重置用户密码时,"找不到具有此名称Office 365
备注
Office 365 ProPlus 正在重命名为 适用于企业的 Microsoft 365 应用。 有关此更改的详细信息, 请阅读此博客文章。
问题
尝试重置用户密码时,Microsoft Office 365以下消息:
找不到具有此名称的用户。它们可能已删除。
解决方案
若要解决此问题,请使用 Microsoft Azure Active Directory Module for Windows PowerShell 将 UPN (用户主体) 设置为默认域。 然后,将用户主体名称更改回使用虚域。 为此,请按照下列步骤操作:
启动Azure Active Directory模块进行Windows PowerShell,并连接到Azure Active Directory。
备注
有关用于Azure Active Directory模块Windows PowerShell,请转到以下 Microsoft 网站:Azure Active Directory Cmdlet。
将用户的 UPN 更改为默认域。 为此,请运行下列命令:
Set-MsolUserPrincipalName -UserPrincipalName [ExistingUPN] -NewUserPrincipalName [NewUPN]例如,使用此命令:
Set-MsolUserPrincipalName -UserPrincipalName johnsmith@contoso.com -NewUserPrincipalName johnsmith@contoso.onmicrosoft.com将用户的 UPN 更改回原始域。 为此,请运行下列命令:
Set-MsolUserPrincipalName -UserPrincipalName [ExistingUPN] -NewUserPrincipalName [NewUPN]例如,使用此命令:
Set-MsolUserPrincipalName -UserPrincipalName johnsmith@contoso.onmicrosoft.com -NewUserPrincipalName johnsmith@contoso.com再次重置密码。
仍然需要帮助? 请转到 Microsoft 社区。