?
Solved

After 2008 DC rebuild rejoining computers

Posted on 2013-01-29
4
Medium Priority
?
272 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 81

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 81

Accepted Solution

by:
arnold earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
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…

807 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