Note: See this post for a new version of this script: https://deployhappiness.com/move-computers-to-ous-automatically-based-on-name-redux/
Does your default computers container look worse than the bedroom of a teenage boy? Dirty clothes everywhere, computers not in the correct OU, illicit contraband, machines not in any security groups – you get the picture! Today, I want you to change that – I want you to use this script and never worry about misplaced computers again. How are we going to do this? Easy – we are going to let PowerShell search AD and start moving computers to an OU automatically based on a name.
Interested? Well, read on to find out how you can do this!