Question Locked

Move a computer to a OU depending on user

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to create a powershell script that can look at the department that a user has in the Organization tab of AD and then move the computer to a correct OU.

I am new to Powershell and not sure if this could be done but my basis to set this out would be to have a text file that has the department names and then next to it have the OU for that department.

Is this possible?

3 replies

by glen.harris

I have a script which will look at a text file of userIDs and the computers they own then move the computer into the same OU as the user.
Let me know if you think this might be of use.

by pamarths

You might want to try this script which helps you in moving the computers based on certain conditions using powershell.

This discussion is closed to new replies.