Jump to content
Sign in to follow this  
MarkVR

Active Directoy Queries

Recommended Posts

MarkVR

Hi I need to do the following in AD

  • Query the AD for a Computer name.
  • If it exists make a note of all the groups it belong to and the OU it is in.
  • Delete the computer account.
  • Recreate the computer account in the origianal OU.
  • Add it to the groups noted before.
I current use DS commands to do all of this but would like to incorperate it into a automation program.

Thank you in advance for your time and input.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×