Solved

After 2008 DC rebuild rejoining computers

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

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 76

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Set OWA language and time zone in Exchange for individuals, all users or per database.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…

746 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

10 Experts available now in Live!

Get 1:1 Help Now