Jump to content

Active Directoy Queries


Recommended Posts

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...