哪些限制阻止我的“添加计算机”命令将计算机添加到域

哪些限制阻止我的“添加计算机”命令将计算机添加到域

哪些限制阻止我的“添加计算机”命令将计算机添加到域?:

PS C:\> Add-Computer -DomainName myDOMAIN.lan -Credential myDOMAIN\myUSER -OUPath "OU=Computers,DC=myDOMAIN,DC=lan"
Add-Computer : Computer 'myPC' failed to join domain 'myDOMAIN.lan' from its current workgroup 'WORKGROUP' with following error message: Account restrictions are
preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced.
At line:1 char:1
+ Add-Computer -DomainName myDOMAIN.lan -Credential myDOMAIN\myUSER  -OUPath " ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (myPC:String) [Add-Computer], InvalidOperationException
    + FullyQualifiedErrorId : FailToJoinDomainFromWorkgroup,Microsoft.PowerShell.Commands.AddComputerCommand

我认为LogonWorkstations该用户没有任何限制:

PS C:\> Get-ADUser myUSER -Property LogonWorkstations | % LogonWorkstations
PS C:\> 

如何使用 Powershell 列出我的用户的限制?

相关内容