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
Solved

After 2008 DC rebuild rejoining computers

Posted on 2013-01-29
4
266 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

This article explains how to install and use the NTBackup utility that comes with Windows Server.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

861 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