Setting the ms-DS-MachineAccountQuota to 0 removes the default ability for authenticated users (i.e., any domain user) to add computers to the domain, which is essential for minimizing security risks. By default, this attribute allows any authenticated user to add up to 10 computers, which can potentially expose the domain to attacks involving unauthorized device additions
By default, Active Directory allows any authenticated user to add up to 10 computers to the domain. This setting, controlled by the ms-DS-MachineAccountQuota attribute, can be exploited in various attack scenarios. Setting this value to 0 enhances security by restricting computer account creation to only those with specific delegated permissions, such as members of the Workstation-Admins group.
mad.caponato.es) and select Properties.By setting ms-DS-MachineAccountQuota to 0, only users or groups with explicit permissions (like Workstation-Admins) can add or remove computers from the domain. This change restricts domain access and minimizes risks of unauthorized device additions, which are commonly exploited in various attack vectors.
Follow these steps to create the Workstation-Admins group in Active Directory.
dsa.msc, and press Enter to open ADUC.Workstation-Admins as the group name.Global.Security.The Workstation-Admins group is now available. You can add users to this group as needed to delegate permissions for adding and removing computers in the domain.
Warning : this procedure grants permissions at the domain level, if you require on a OU, then a custom delagation must be granted. This is not covered in this tutorial.
To enable the Workstation-Admins group to add and remove computers at the domain level, follow these steps:
dsa.msc, and press Enter to launch ADUC.mad.caponato.es) and select Delegate Control.This grants the “Join (create)” permission only. Let's also grant “Delete” permission.
dsa.msc, and press Enter to launch ADUC.mad.caponato.es) and select SecurityThe Workstation-Admins group now has the necessary permissions to add and remove computer accounts at the domain level.
Caponato's Samba notebook. Start here or else Main menu