I was wondering if anybody can perhaps give me a hand with this script(.cmd) that I need
From a pclis.txt move these computer to a custom OU. Please notice some OUs have spaces in between the names, so I noticed the following eg.
in my own
"For /F %a in (pclist.txt) do dsmove %a -newparent "ou=Marketing,dc=microsoft,dc=com""
it will give me an ERR and would pull only the name from my own pclist, like this
dsmove "CN=Computerkitchen,OU=Acme,OU=USA" -newparent "ou=Marketing,dc=microsoft,dc=-com"
Error pc not found...(I know it's different error I didn't get a chance to write the exact error code)
Any thoughts? or does anybody have a different approach?
in any of the events, thanks for looking out