Windows error 0x80072035, -2147016651

Detailed Error Information

DS_UNWILLING_TO_PERFORM[1]

MessageThe server is unwilling to process the request.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code8245 (0x2035)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x00002035.

Questions

2votes
1answer

Why in active directory group cannot be created as groupType = Local

I am not able to understand why creating group in active directory as "local" for groupType doesnt work. it throws following exception : System.DirectoryServices.DirectoryServicesCOMException (0x80072035): The server is unwilling to process the request. while following is the code sample : var parentEntry = new DirectoryEntry(ParentContainer); var groupToCreate = parentEntry.Children.Add(this.AttributeType + [...] read more
c#
active-directory
ldap
distinguishedname
2votes
2answers

Problems requesting the LDAP: The server is unwilling to process the request

We have written an authentication provider for a SharePoint web application which can requests multiple LDAP directories. One of the LDAP server have to be requested via SSL. So we imported the CA certificate which was used to sign the LDAP server's certificate into the certificate store of the SharePoint [...] read more
sharepoint
ssl
ldap
2votes
4answers

Adding User to AD Security Group fails after user creation

I am using a WCF service to expose certain Active Directory management functions to our help desk staff without giving them the group membership required to manipulate AD directly. Adding users to and removing users from groups is working like a champ with existing users, but every time I create [...] read more
c#
active-directory
directoryservices
2votes
2answers

Add users to a Security Group in active directory

Using any .NET framework I am able to create security groups, however when I try to add users from within the same domain I get an error. Using System.DirectoryServices.AccountManagement: TheGroup = GroupPrincipal.FindByIdentity(SecurityContext, "GROUPNAME") TheGroup.Members.Add(SecurityContext, IdentityType.SamAccountName, "username") TheGroup.Save() Everything works for creating, and getting an existing group. Also adding the members [...] read more
.net
vb.net
active-directory
1vote
2answers

Powershell add user to group

I am trying to read an XML file with user information and based on that information I want to add users to Active Directory groups. I have been looking up the error messages with no help so far. Here is the add user to group code: $MyUsers = [xml] (Get-Content [...] read more
powershell
active-directory
0votes
1answer

Can not set password when create new Active Directory with C#

I'm getting stuck with creating Active Directory User with C# this is my code use to create a new user: public bool CreateUser(string userName, string password) { try { DirectoryEntry entry = new DirectoryEntry(lDAPConnectionString, aDConnectionUserName, aDConnectionPassword, AuthenticationTypes.Secure); // Use the Add method to add a user to an organizational unit. [...] read more
c#
active-directory
0votes
1answer

How to remove members when account is from Domain A and the group is from Domain B?

Here is my script: # get distinguished name $grpDN = (Get-QADGroup mw\AAA).dn $UsrDN = (Get-QADUser sw\tx116).dn # using Remove-QADGroupMember Remove-QADGroupMember -Identity $grpDN -Member $UsrDN Here is the error: > Remove-QADGroupMember : The server is unwilling to process the request. > (Exception from HRESULT: 0x80072035) I also tried to use Remove-AdgroupMember [...] read more
powershell
scripting
active-directory
0votes
1answer

Error when running powershell script to import users from csv using Import-Csv and New-QADUser into Active Directory

My script looks like this: $Users = Import-Csv "C:\users.csv" foreach ($User in $Users) { New-QADUser -Name $User.Name ` -ParentContainer $User.OU ` -FirstName $User.FirstName ` -LastName $User.LastName ` -UserPassword $User.userPassword ` -SamAccountName $User.sAMAccountName ` } When I run it I get the following error: DefaultNamingContext Type -------------------- ---- DC=example,DC=domain,DC=org ActiveDirectory The [...] read more
powershell
active-directory
windows-server-2008
powergui
0votes
1answer

set user password using c# in Active Directory fails

I try to set the user password like this: user.Invoke("SetPassword", password); But I get an exception > The server is unwilling to process the request. (Exception from HRESULT: > 0x80072035) > > 0000052D: SvcErr: DSID-031A129B, problem 5003 (WILL_NOT_PERFORM), data 0 Sounds familiar to someone? read more
c#-4.0
active-directory
0votes
2answers

Unwilling server: Can't unlock AD account in code

When I try to unlock an AD account using my own C# program, I get the following error: > System.DirectoryServices.DirectoryServicesCOMException (0x80072035): The > server is unwilling to process the request. This is the code I use to unlock the account: // "ldap" is an instance of my own class for [...] read more
c#
active-directory
ldap
directoryservices

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0