Changing the Maximum Number of Computers That a User Can Join to the Domain

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to change the maximum number of computers that a user can join to a domain.

Example

The following example demonstrates how to change the maximum number of computers that a user can join to the domain Fabrikam.com:

Set-ADDomain Fabrikam.com -Replace @{"ms-ds-MachineAccountQuota"="2"}'

Additional information

You can use the following parameters when you set many of the common values that are associated with domain management.

  • -LastLogonReplicationInterval

  • -AllowedDNSSuffixes

  • -ManagedBy

For a full explanation of the parameters that you can pass to Set-ADDomain, at the Active Directory module command prompt, type Get-Help Set-ADDomain –detailed, and then press ENTER.