服务器不愿意处理请求 [英] The server is unwilling to process request

查看:119
本文介绍了服务器不愿意处理请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Powershell在名为Branches的OU下添加称为Calder的OU,但我一直收到错误 New-ADOrganizationalUnit:服务器不愿处理该请求.,同时我也在运行powershell作为管理员

I am trying use powershell to add OU called Calder under an OU called Branches but I keep getting the error New-ADOrganizationalUnit : The server is unwilling to process the request., Also I am running powershell as a admin

这是我放入Powershell中的内容

Here is what I put in powershell

New-ADOrganizationalUnit "Calder" -Path "OU=Branches, DC=company.epl, DC=local

这是完整的错误

New-ADOrganizationalUnit:服务器不愿意处理要求在线:1字符:1+ New-ADOrganizationalUnit"Calder"-路径"OU = Branches,DC = company.epl…+ + CategoryInfo:未指定:(OU = Calder,OU + Br ... y.epl,DC = local:Strin g)[New-ADOrganizationalUnit]:ActiveDirectoryServer:O,Microsoft.ActiveDirectory.Management.Commands.NewADOrganizationalUnit

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对象会有所帮助.

I've generally seen this error when I've got my fully qualified DN mistyped. If that is the case, using a search to grab the intended OU object helps.

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 ,以查看是否有更好的指示确切说明了什么地方出了问题.

If it's not just an incorrect OU path, try appending -Verbose to the command and see if there's a better indication of what exactly went awry.

这篇关于服务器不愿意处理请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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