I am getting the below error while trying to add a computer object in AD by using Powershell.
New-ADComputer -Name <Computer Name> -Path 'OU=Devices,DC=enterprise,DC=com' -Enabled $True
Error: New-ADComputer : A required attribute is missing
See example 1 at New-ADComputer . I guess the parameter -SamAccountName
is missing.
New-ADComputer -Name "USER02-SRV2" -SamAccountName "USER02-SRV2" -Path "OU=ApplicationServers,OU=ComputerAccounts,OU=Managed,DC=USER02,DC=COM"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.