服务器不愿意处理请求
The server is unwilling to process request
我正在尝试使用 powershell 在名为 Branches 的 OU 下添加名为 Calder 的 OU,但我不断收到错误 New-ADOrganizationalUnit : The server is unwilling to process the request.
,而且我是 运行 powershell 作为管理员
这是我在 powershell 中输入的内容
New-ADOrganizationalUnit "Calder" -Path "OU=Branches, DC=company.epl, DC=local
这是完整的错误
New-ADOrganizationalUnit : The server is unwilling to process the
request At line:1 char:1
+ New-ADOrganizationalUnit "Calder" -Path "OU=Branches, DC=company.epl …
+ + CategoryInfo :NotSpecified: (OU=Calder, OU+Br...y.epl, DC=local:Strin g) [New-ADOrganizationalUnit] :
ActiveDirectoryServer:O,Microsoft.ActiveDirectory.Management.Commands.NewADOrganizationalUnit
当我输入错误的完全限定 DN 时,我通常会看到此错误。如果是这种情况,使用搜索来获取预期的 OU 对象会有所帮助。
PS> $MYOU = Get-ADOrganizationalUnit -filter 'Name -like "Branches"'
PS> $MYOU.DistinguishedName
OU=Branches,dc=MyCompany,dc=ccTLD
PS> New-ADOrganizationalUnit "Calder" -Path $MYOU.DistinguishedName
PS> Get-ADOrganizationalUnit -filter 'Name -like "Calder"'
City :
Country :
DistinguishedName : OU=Calder,OU=Branches,dc=MyCompany,dc=ccTLD
LinkedGroupPolicyObjects : {}
ManagedBy :
Name : Calder
ObjectClass : organizationalUnit
ObjectGUID : 559c4242-505a-c165-15d5-562b5fb99103
PostalCode :
State :
StreetAddress :
如果不仅仅是 OU 路径不正确,请尝试将 -Verbose
附加到命令中,看看是否有更好的指示说明到底出了什么问题。
我正在尝试使用 powershell 在名为 Branches 的 OU 下添加名为 Calder 的 OU,但我不断收到错误 New-ADOrganizationalUnit : The server is unwilling to process the request.
,而且我是 运行 powershell 作为管理员
这是我在 powershell 中输入的内容
New-ADOrganizationalUnit "Calder" -Path "OU=Branches, DC=company.epl, DC=local
这是完整的错误
New-ADOrganizationalUnit : The server is unwilling to process the request At line:1 char:1 + New-ADOrganizationalUnit "Calder" -Path "OU=Branches, DC=company.epl … + + CategoryInfo :NotSpecified: (OU=Calder, OU+Br...y.epl, DC=local:Strin g) [New-ADOrganizationalUnit] : ActiveDirectoryServer:O,Microsoft.ActiveDirectory.Management.Commands.NewADOrganizationalUnit
当我输入错误的完全限定 DN 时,我通常会看到此错误。如果是这种情况,使用搜索来获取预期的 OU 对象会有所帮助。
PS> $MYOU = Get-ADOrganizationalUnit -filter 'Name -like "Branches"'
PS> $MYOU.DistinguishedName
OU=Branches,dc=MyCompany,dc=ccTLD
PS> New-ADOrganizationalUnit "Calder" -Path $MYOU.DistinguishedName
PS> Get-ADOrganizationalUnit -filter 'Name -like "Calder"'
City :
Country :
DistinguishedName : OU=Calder,OU=Branches,dc=MyCompany,dc=ccTLD
LinkedGroupPolicyObjects : {}
ManagedBy :
Name : Calder
ObjectClass : organizationalUnit
ObjectGUID : 559c4242-505a-c165-15d5-562b5fb99103
PostalCode :
State :
StreetAddress :
如果不仅仅是 OU 路径不正确,请尝试将 -Verbose
附加到命令中,看看是否有更好的指示说明到底出了什么问题。