问题描述
嗨
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"[email protected]" -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 "[email protected]" -AccountEnabled $true -MailNickName "DomainJoiner"
如果您有任何想法,请告诉我.
If you have any ideas please let me know.
谢谢
Richard
推荐答案
------------------------------------------- -------------------------------------------------- -
如果此答案有帮助,请单击标记为答案"或投票.提供额外的 关于您的论坛体验的反馈,请单击.
If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here.
这篇关于所引用的帐户当前已被锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!