To enable or install Active Directory Users and Computers in Windows 11/10, do the following:
From the Start menu, select Settings > Apps.
Click the hyperlink on the right side labeled Manage Optional Features and then click the button to Add feature.
Select RSAT: Active Directory Domain Services and Lightweight Directory Tools.
Click Install.