Skip to content

Commit 04ed1cb

Browse files
author
Simonx Xu
committed
Update cannot-edit-delete-ad-object-error-sam.md
1 parent cf48c12 commit 04ed1cb

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

support/windows-server/active-directory/cannot-edit-delete-ad-object-error-sam.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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."
44
ms.date: 03/04/2025
55
manager: dcscontentpm
66
audience: itpro
@@ -12,7 +12,7 @@ ms.custom:
1212
---
1313
# 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"
1414

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."
1616

1717
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:
1818

@@ -73,24 +73,24 @@ repadmin -showobjmeta DC01 "CN=oldcomputer,OU=Disabled,OU=Workstations,DC=contos
7373
312781 DC12\0ADEL:AF9F2C0D-6B9F-4e32-A94D-A3E235A31BF7 98364396 YYYY-09-16 13:01:55 2 isRecycled
7474
```
7575

76-
Here is the interpretation of the metadata:
76+
Here's the interpretation of the metadata:
7777

7878
- 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.
8181
- The `isDeleted` attribute
8282
- The version also shows `2`. This means the object was deleted and was undeleted by clearing the attribute.
8383
- If the object was revived using an authoritative restore, the version numbers for all attributes would be higher (the default version increase is 100000).
8484
- 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.
8686
- With AD Recycle Bin, the attribute would only be set on a recycled object.
8787
- Expected behaviors
8888
- If the undeletion worked as expected, the version of `sAMAccountType` and `objectCategory` would be an odd value (for example, `3`)
8989
- The timestamp for these attributes would match or be slightly newer than the timestamp for `IsDeleted`.
9090

9191
## The sAMAccountType and objectCategory attributes aren't added to the object in an undeletion process
9292

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.
9494

9595
## Use the fixupObjectState attribute with LDIFDE to repair the object
9696

@@ -102,7 +102,7 @@ The object was deleted and undeleted. Deleted objects don't have the `sAMAccount
102102
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).
103103

104104
> [!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].
106106
107107
### Step 1: Identify the object name and the globally unique identifier (GUID)
108108

@@ -145,25 +145,25 @@ For example:
145145
146146
Using the Base64 format, the import file updates the attributes individually:
147147
148-
- For the `sAMAccountType` attribute:
149-
150-
```output
151-
DN:
152-
Changetype:modify
153-
add: fixupObjectState
154-
fixupObjectState:: PGd1aWQ9Y2YyYjRhY2EtMGU2Ny00N2Q5LTk4YWEtMzBhNWZlMzBkYzM2PjpTYW1BY2NvdW50VHlwZQ==
155-
-
156-
```
157-
158-
- For the `objectCategory` attribute:
159-
160-
```output
161-
DN:
162-
Changetype:modify
163-
add: fixupObjectState
164-
fixupObjectState:: PGd1aWQ9Y2YyYjRhY2EtMGU2Ny00N2Q5LTk4YWEtMzBhNWZlMzBkYzM2PjpPYmplY3RjYXRlZ29yeQ==
165-
-
166-
```
148+
- For the `sAMAccountType` attribute:
149+
150+
```output
151+
DN:
152+
Changetype:modify
153+
add: fixupObjectState
154+
fixupObjectState:: PGd1aWQ9Y2YyYjRhY2EtMGU2Ny00N2Q5LTk4YWEtMzBhNWZlMzBkYzM2PjpTYW1BY2NvdW50VHlwZQ==
155+
-
156+
```
157+
158+
- For the `objectCategory` attribute:
159+
160+
```output
161+
DN:
162+
Changetype:modify
163+
add: fixupObjectState
164+
fixupObjectState:: PGd1aWQ9Y2YyYjRhY2EtMGU2Ny00N2Q5LTk4YWEtMzBhNWZlMzBkYzM2PjpPYmplY3RjYXRlZ29yeQ==
165+
-
166+
```
167167
168168
### Step 3: Repair the object with LDIFDE
169169

0 commit comments

Comments
 (0)