所引用的帐户当前已被锁定 [英] The referenced account is currently locked out

查看:262
本文介绍了所引用的帐户当前已被锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi

我正在执行以下证明:为了证明Azure可以在我们的应用程序中比AWS更好地工作,而进行概念项目,但是在遇到第一个障碍时就失败了 尝试将计算机加入AzureAD.我收到当前引用的帐户已被锁定"的提示.尝试加入域时,但用户名和密码正确,即使我只是为此目的创建了一个新帐户,也确实出现了此错误.

I'm running a Proof of Concept project in order to prove Azure can work better than AWS for our application, but am failing at the first hurdle when trying to join machines to the AzureAD. I'm getting "The referenced account is currently locked out" when trying the domain join, but the username and password is correct, indeed I get this error even if I create a new account just for this purpose.

我已启用Active Directory域服务.

I have Active Directory Domain Services enabled.

我还认为这可能是因为可能需要新帐户才能在下次登录时更改密码,所以我使用了这些PowerShell命令来确保不是这种情况,但是我仍然遇到相同的问题:

I also considered that it could be because new accounts may be required to change passwords at the next login, so I used these PowerShell commands to ensure that's not the case, but I still get the same problem:

$ password = ConvertTo-SecureString -String ******** -AsPlainText -Force
$ user = Get-AzureADUser -SearchString Service.DomainJoin
$ passwordProfile = $ user.PasswordProfile
Set-AzureADUserPassword -ObjectId $ user.ObjectId -Password $ password -ForceChangePasswordNextLogin $ false

$password = ConvertTo-SecureString -String ******** -AsPlainText -Force
$user = Get-AzureADUser -SearchString Service.DomainJoin
$passwordProfile = $user.PasswordProfile
Set-AzureADUserPassword -ObjectId $user.ObjectId -Password $password -ForceChangePasswordNextLogin $false

我也尝试过

$ PasswordProfile =新对象-TypeName Microsoft.Open.AzureAD.Model.PasswordProfile
$ PasswordProfile.Password =" *********"
$ passwordProfile.EnforceChangePasswordPolicy = $ false
$ passwordProfile.ForceChangePasswordNextLogin = $ false
New-AzureADUser -DisplayName新用户"; -PasswordProfile $ PasswordProfile -UserPrincipalName"DomainJoiner@richardmoorebjss.onmicrosoft.com" -AccountEnabled $ true -MailNickName" DomainJoiner"

$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile
$PasswordProfile.Password = "*********"
$passwordProfile.EnforceChangePasswordPolicy = $false
$passwordProfile.ForceChangePasswordNextLogin = $false
New-AzureADUser -DisplayName "New User" -PasswordProfile $PasswordProfile -UserPrincipalName "DomainJoiner@richardmoorebjss.onmicrosoft.com" -AccountEnabled $true -MailNickName "DomainJoiner"

如果您有任何想法,请告诉我.

If you have any ideas please let me know.

谢谢

Richard

推荐答案

我建议您参考类似的讨论

I would suggest you to refer the similar discussion here to resolve this issue. See if this helps.

If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here.


这篇关于所引用的帐户当前已被锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆