Anyway... you must replace the OU=/DC= with the name wich matches your domain. Also beware of the -limit. In this ex, I used -limit 1000, if omitted default is 100. That means that if you have more than 100 computers in the OU, the script will stop after proccessing 100 object.
.MoveHere is a method of the IADsContainer class, perhaps therefore it doesnt apply to IADsComputer objects. seems silly that it wouldnt work. the documentation say
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.