无法弄清楚为什么我在New-ADUser上收到此错误 [英] Can't figure out why I'm getting this error on New-ADUser
本文介绍了无法弄清楚为什么我在New-ADUser上收到此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
命令是:
New-ADUser –SamAccountName "TestProvider" -UserPrincipalName "TestProv@CompanyName.com" -GivenName "Test" -Surname "Provider" -DisplayName "Test Provider" -Name "Test Provider" -Enabled $true -path "ou=CompanyName,ou=Users,ou=Providers,DN=intranet,DN=CompanyName,DN=com" -AccountPassword (ConvertTo-SecureString "TEST123test" -AsPlainText -force) -PasswordNeverExpires $True
错误是:
The error is:
New-ADUser : No superior reference has been configured for the directory service. The directory service is therefore un
able to issue referrals to objects outside this forest
At line:1 char:11
+ New-ADUser <<<< -SamAccountName "TestProvider" -UserPrincipalName "TestProv@CompanyName.com" -GivenName "Test" -
Surname "Provider" -DisplayName "Test Provider" -Name "Test Provider" -Enabled $true -path "ou=CompanyName,ou=Users,ou=
Providers,DN=intranet,DN=CompanyName,DN=com" -AccountPassword (ConvertTo-SecureString "TEST123test" -AsPlainText -force
) -PasswordNeverExpires $True
+ CategoryInfo : NotSpecified: (CN=Test Provide...panyName,DN=com:String) [New-ADUser], ADException
+ FullyQualifiedErrorId : No superior reference has been configured for the directory service. The directory servi
ce is therefore unable to issue referrals to objects outside this forest,Microsoft.ActiveDirectory.Management.Comm
ands.NewADUser
我认为这与我指定"路径"的方式有关。但我不确定。
用户应该在OU中创建:CompanyName>用户>提供商
域名为intranet.companyname.com
I think it has something to do with the way I'm specifying the "path" but i'm not sure.
The user should be created in an OU: CompanyName > Users > Providers
The domain is intranet.companyname.com
推荐答案
您的DN指向您所在林区之外的域。 您确定您的UPN引用了当前域吗?
You DN points to a domain that is outside of the forest you are in. Are you sure your UPN references the current domain?
这篇关于无法弄清楚为什么我在New-ADUser上收到此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文