?
Solved

After 2008 DC rebuild rejoining computers

Posted on 2013-01-29
4
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 79

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 79

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
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 the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Suggested Courses

777 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