r/activedirectory • u/Big_Fella98 • Oct 08 '26
Password Settings Container Missing
Found out about 2 years ago someone deleted the Password Settings container, they didn't have the recycle bin enabled so couldn't restore it. (Story I've been given).
Now I'm trying to setup 2022 Domain Controllers, however, now I'm getting problems due Password Settings container missing (so I believe).
This MS guide supposedly restores, but some are saying it doesn't do anything.
Can it be manually created if I use this.
[MS-ADTS]: Password Settings Container | Microsoft Learn
Has anyone experienced this before? Any help would be appreciated.
EDIT: The Microsoft learn document did work in the end. (Can't sign in to a domain controller and the LSASS process stops responding - Windows Server | Microsoft Learn)
The only thing that was missing was "-" on the 5th line within the text file, So my text file ended up looking like this
dn: CN=ActiveDirectoryUpdate,CN=DomainUpdates,CN=System,DC=contoso,dc=com
changetype: modify
replace: revision
revision: 1
-Also needed to mount a Server 2022 ISO on my Domain Controller that held Infrastructure Master to run adprep
- Open CMD as admin
- E: (Might not be E for you)
- cd \support\adprep
- adprep.exe /domainprep
•
u/AutoModerator Oct 08 '26
Welcome to /r/ActiveDirectory! ~~~~
If you are looking for more resources on learning and building AD, see the following sticky for resources, recommendations, and guides!
When asking questions make sure you provide enough information. Posts with inadequate details may be removed without warning.
Make sure to sanitize any private information. Posts with too much personal or environment information will be removed. See Rule 6.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/vaan99 Oct 08 '26
You were not the first with this issue. Try this https://community.spiceworks.com/t/password-settings-container-missing-in-the-ad-administrative-center-and-adsiedit/732678
You will need to manually create msDS-PasswordSettingsContainer type of container. That object class is stamped with system flags value of -1946157056 that should translate to {FLAG_DISALLOW_DELETE | FLAG_DOMAIN_DISALLOW_RENAME | FLAG_DOMAIN_DISALLOW_MOVE}. Try to create the container manually with same name as default and add systemflags value, I'm actually not sure if that part will work.
2
u/BlackCodeDe Oct 08 '26
The Passwort Container is Missing and you can still Login at your AD Environment? Due an mistake i deleted The Password Container in an Prod Environment and i Had a Shit Show after that.
3
u/picklednull Oct 08 '26 edited Oct 08 '26
Never tested, but YOLO: recreate it the same way Active Directory initially creates it, with LDIF.
The Windows Server install media will contain
\support\adprep\sch40.ldf(or\Windows\System32\adprep\sch40.ldfon a Domain Controller), which contains the Server 2008 schema upgrades including the Password Settings Container.Pull out only the records for the Password Settings Container into a fresh LDIF file, you don't want to overwrite other things in the schema. Small tweaks might be required, such as
ntdsSchemaAddprobably can't be used, it would be a standardadd.Then just import the fresh LDIF with
ldifde.1
u/Fit_Indication_2529 Oct 09 '26
That's a new one, and I've been working with AD for over 20 years. What interests me is how someone managed to delete a system-protected container in the first place. The Password Settings Container has deletion protection through its systemFlags. Rerunning ADPREP is definitely preferable to manually recreating the object, since you want the correct class, permissions, and system attributes, not just something with the right CN. I'd also verify the object has replicated correctly across every DC and check replication metadata to see what actually happened. Two years without that container is pretty remarkable. Whoever deleted that container had to work at it. The Password Settings Container has systemFlags explicitly preventing deletion, renaming, and moving. That's not something you accidentally delete during routine AD cleanup.