EvotecIT / Testimo

Testimo is a PowerShell module for running health checks for Active Directory against a bunch of different tests
MIT License
539 stars 58 forks source link

Add test for ms-DS-MachineAccountQuota #140

Closed PrzemyslawKlys closed 2 years ago

PrzemyslawKlys commented 3 years ago

By default, In the Microsoft Active Directory, members of the authenticated user group can join up to 10 computer accounts in the domain. This value is defined in the attribute ms-DS-MachineAccountQuota on the domain-DNS object for a domain.

Get-ADObject -Identity ((Get-ADDomain).distinguishedname) -Properties ms-DS-MachineAccountQuota

Set-ADDomain -Identity <DomainName> -Replace @{"ms-DS-MachineAccountQuota"="0"}

Users must have explicit permissions in Active Directory to join computers to a domain.