Monday, June 15, 2015

Powershell move computer account to specific OU....a little bit complex

Hi, I had the need to move a list of computer account to specific OU(s). The situation became complicated when you could have different OU based on the type of computer : notebook, desktop, server and so on. It feeds 3 different arrays and based on the result of the AD query (searching the destination OU) you can move their content on the destination container that you prefer.
This script, improvable for sure, could help. Will add some comments later. In the meantime enjoy it No complications, no tricks, only the essential. Hope this helps. See you soon.

No comments:

Post a Comment