powershell – The server is unwilling to process request

powershell – The server is unwilling to process request

Ive generally seen this error when Ive 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            :

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

powershell – The server is unwilling to process request

Leave a Reply

Your email address will not be published.