I'm looking for a way to efficiently add computer accounts to Active Directory since I get a list of new stations to be built each month, usually around 30 to 60. Currently, I'm using the Active Directory interface, but it's a bit slow. I want to create a PowerShell script that can take a text file with the names of these computers and add them to Active Directory. However, I see the Add-Computer cmdlet, which seems to be for joining computers to the domain, and I'm only looking to add their names for now, as they will be joined later. Any suggestions on how I can achieve this?
1 Answer
I recommend looking into using endpoint management tools like MDT or Intune if you’re handling a large number of devices. These tools are designed to automate the provisioning process more effectively. Pre-creating AD computer accounts isn't very common anymore; most people just join them to the domain as needed. What’s your reasoning for wanting to add them in advance?

Yeah, it’s been ages since I’ve seen pre-added accounts in AD. Usually, we just join and then prepare devices. I'd be curious to know what specific use case you have in mind for pre-adding.