Can a computer be added to an AD group during creation with PowerShell?
I'm building a PowerShell script that creates computer accounts and adds them to a specific Active Directory group. Creating the computer works with New-ADComputer, but Add-ADGroupMember fails with…