You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/windows-server/active-directory/cannot-edit-delete-ad-object-error-sam.md
+27-27Lines changed: 27 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Can't edit or delete an AD object and receive errors
3
-
description: Helps resolve the issue in which you can't edit or delete an Active Directory (AD) object and receive an error "attribute is owned by the Security Accounts Manager (SAM)" or "The specified account does not exist".
3
+
description: Helps resolve the issue in which you can't edit or delete an Active Directory (AD) object and receive an error "attribute is owned by the Security Accounts Manager (SAM)" or "The specified account does not exist."
4
4
ms.date: 03/04/2025
5
5
manager: dcscontentpm
6
6
audience: itpro
@@ -12,7 +12,7 @@ ms.custom:
12
12
---
13
13
# Can't edit or delete an AD object and receive error "attribute is owned by the Security Accounts Manager (SAM)" or "The specified account does not exist"
14
14
15
-
This article helps resolve the issue in which you can't edit or delete an Active Directory (AD) object and receive an error "attribute is owned by the Security Accounts Manager (SAM)" or "The specified account does not exist".
15
+
This article helps resolve the issue in which you can't edit or delete an Active Directory (AD) object and receive an error "attribute is owned by the Security Accounts Manager (SAM)" or "The specified account does not exist."
16
16
17
17
You have a user, Managed Service Account (MSA), Group Managed Service Account (gMSA), computer or group object that is in use. When you attempt to delete a security principal from AD, you receive the following Lightweight Directory Access Protocol (LDAP) error:
- The `sAMAccountType` and `objectCategory` attributes
79
-
- They're usually set once.
80
-
- The version is `2`, and they aren't set at this time. So they were removed during the object deletion, and were not re-populated during the undeletion.
79
+
- They're set once.
80
+
- The version is `2`, and they aren't set at this time. So they were removed during the object deletion, and weren't repopulated during the undeletion.
81
81
- The `isDeleted` attribute
82
82
- The version also shows `2`. This means the object was deleted and was undeleted by clearing the attribute.
83
83
- If the object was revived using an authoritative restore, the version numbers for all attributes would be higher (the default version increase is 100000).
84
84
- The `isRecycled` attribute
85
-
- It shows that at least at the time of the undeletion, Active Directory (AD) Recycle Bin was not enabled.
85
+
- It shows that at least at the time of the undeletion, Active Directory (AD) Recycle Bin wasn't enabled.
86
86
- With AD Recycle Bin, the attribute would only be set on a recycled object.
87
87
- Expected behaviors
88
88
- If the undeletion worked as expected, the version of `sAMAccountType` and `objectCategory` would be an odd value (for example, `3`)
89
89
- The timestamp for these attributes would match or be slightly newer than the timestamp for `IsDeleted`.
90
90
91
91
## The sAMAccountType and objectCategory attributes aren't added to the object in an undeletion process
92
92
93
-
The object was deleted and undeleted. Deleted objects don't have the `sAMAccountType` and `objectCategory` attributes. They are added to the object after the undeletion in the normal case. In the problem case, the process fails, leaving the object live without these key attributes.
93
+
The object was deleted and undeleted. Deleted objects don't have the `sAMAccountType` and `objectCategory` attributes. They're added to the object after the undeletion in the normal case. In the problem case, the process fails, leaving the object live without these key attributes.
94
94
95
95
## Use the fixupObjectState attribute with LDIFDE to repair the object
96
96
@@ -102,7 +102,7 @@ The object was deleted and undeleted. Deleted objects don't have the `sAMAccount
102
102
To resolve this issue, use the new facility included in Windows Server 2025 to repair broken objects as specified in [[MS-ADTS]: fixupObjectState](/openspecs/windows_protocols/ms-adts/37294765-9e7d-41a1-aded-2d6f744eee8c).
103
103
104
104
> [!NOTE]
105
-
> There is also functionality to repair the `LastLogonTimeStamp` attribute. For more information, see [Will update link to the new article for this attribute].
105
+
> There's also functionality to repair the `LastLogonTimeStamp` attribute. For more information, see [Will update link to the new article for this attribute].
106
106
107
107
### Step 1: Identify the object name and the globally unique identifier (GUID)
108
108
@@ -145,25 +145,25 @@ For example:
145
145
146
146
Using the Base64 format, the import file updates the attributes individually:
0 commit comments