I have used the following commands to enable recycle bin:
$ForestName = (Get-ADDomain).Forest
Enable-ADOptionalFeature -Identity 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target $ForestName -Confirm:$false
The command ran successfully, but a "Deleted Objects" container was not created.
As a test, I have created a user, waited for it to be synced to all dcs, and then deleted it. Even then no Deleted Objects container was created.
(Get-ADDomain).DeletedObjectsContainer
returns CN=Deleted Objects,DC=domain,DC=com"
(which doesn't exist).
The forest level is 2016, all dcs are windows server 2022. (freshly installed)
What should I have done differently and how can I fix this?