kamsuj
asked on
Moving computer to OU "below"
Hi,
I need a script to do couple of things:
1. read from xml file computer names for example:
comp1
comp2
comp3
2. search AD for every computer and get his DN for example:
CN=comp1,ou=computers,dc=t estdomain, dc=local
3. modify the DN to include OU that is below:
CN=comp1,OU=TEST,ou=comput ers,dc=tes tdomain,dc =local
4. After that move the copmuter account to that OU
5. write results to xml file
Do you have something like this?
I need a script to do couple of things:
1. read from xml file computer names for example:
comp1
comp2
comp3
2. search AD for every computer and get his DN for example:
CN=comp1,ou=computers,dc=t
3. modify the DN to include OU that is below:
CN=comp1,OU=TEST,ou=comput
4. After that move the copmuter account to that OU
5. write results to xml file
Do you have something like this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
PowerGUI might be of Help.
http://www.powergui.org/
it's a free tool..
regards