• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

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=testdomain,dc=local

3. modify the DN to include OU that is below:

CN=comp1,OU=TEST,ou=computers,dc=testdomain,dc=local

4. After that move the copmuter account to that OU

5. write results to xml file

Do you have something like this?
0
kamsuj
Asked:
kamsuj
1 Solution
 
bcoyxpCommented:
hi,

PowerGUI might be of Help.

http://www.powergui.org/

it's a free tool..

regards
0
 
kamsujAuthor Commented:
bcoyxp it needs to be a vbs script
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now