Solved

After 2008 DC rebuild rejoining computers

Posted on 2013-01-29
4
265 Views
Last Modified: 2013-01-30
Is there any quicker way outside of a SS restoral to re-add computers back to the domain without having to touch each machine and completing the process to rejoin?
Maybe a reliable VB or PowerShell script run remotely perhaps?
0
Comment
Question by:Webcc
  • 2
  • 2
4 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 38833874
You could use netdom with psexec, the problem is whether you have a local admin logon active that you can use.
Rejoining systems is one of several steps. User account creation, OU, GPO, logon script, etc.

http://powershell.com/cs/forums/t/8006.aspx

Restoring system state is needed only if there was a single DC, in a multi DC the rebuilt system should simply rejoin the AD and with dcpromo get promoted back to the DC role.
0
 

Author Comment

by:Webcc
ID: 38837964
Found Powershell cmd "add-computer".  What is required to run this on a remote computer and can you call a script from within PowerShell?

BTW - Both DCs were affected, could not login with any account, think a virus.  Had a password recovery tool but could not find the RAID controller and I did not know how to incorporate the drivers with the boot USB drive.
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 38838025
You can use psexec from sysinternals

Create a powershell script joindomain.ps1
Psexec computername -s -c -u remoteloginusername 'joindomain.ps1'

You must use remote system's local admin.  Test first.
Not sure the ps1 is mapped.  Using netdom might be simpler or joining each system which you can login into using cached credentials while the DCs are inaccessible.
0
 

Author Closing Comment

by:Webcc
ID: 38838036
Thank you!
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now