Creates a new Active Directory computer
Functions: | |
Type: | |
Toolsets: |
$account = 'MyComputer'
$password = 'Password1!'
$domain = 'ad.bitsadmin.com'
New-ADComputer -Name $account -SAMAccountName $account -AccountPassword (ConvertTo-SecureString $password -Force -AsPlainText) -Verbose -DNSHostName "$account.$domain" -ServicePrincipalNames @("HOST/$account.$domain","RestrictedKrbHost/$account.$domain","HOST/$account","RestrictedKrbHost/$account")
Usecase
ms-DS-MachineAccountQuota
(global setting) is set to 10 for all domain users
ActiveDirectory