We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Exchange and CA Server Rejoin Domain

FredCred asked
Medium Priority
Last Modified: 2012-05-07
Our email server stopped responding, and upon reboot, would not connect to the domain.  The onsite guy used the reset account command in the active directory gui, rebooted, but still would not connect.

If I understand it correctly, now that he has reset the machine account, the only way to get back on the domain would be to unjoin\rejoin.  I tried netdom without success (I assume because he reset the account).  DNS and connectivity seem fine because I can ping back and forth via address and name.  When logged in local (it uses same administrator password as the domain) I can access the system shares of the PDC via unc.

Is there a procedure to backup the CA database, unjoin\rejoin, and restore the ca information without breaking Exchange?

It's a single Exchange 2003 Enterprise on a 2003 member server.  The PDC is also 2003 server.

Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
Expert of the Quarter 2009
Expert of the Year 2009

If you boot the machine up out of the domain with Exchange installed you will break Exchange. While you are moving things around you must disable all of the Exchange and IIS related services.

The same trick might work for the certificate authority, but I haven't done it.


Hi Mestha (or should I say Sembee ;-)

Do you agree that when he joins back to the domain all will be good with Exchange, or do you have a differing opinion?  I can't think of any reason Exchange won't come right back up after rejoining the domain....but as I said I've never actually done it.
Expert of the Quarter 2009
Expert of the Year 2009

As long as the machine account is intact then after the machine has been joined to the domain then Exchange should start. I have dropped machine a off the domain then put it back on again in the past with Exchange involved.

ParanormasticCryptographic Engineer

Actually it sounds more like the CA is on the Exchange box.  Can't say that I would recommend that (as I recommend all CA servers be on a dedicated box or VM), but at least it isn't a DC.

I can't speak much to the Exchange part of dis/rejoining the domain, but for the CA:
1) Full backup including system state.
3) Open up the Certification Authority MMC (certsrv.msc).  Take note of what CAName is (the friendly name of the CA listed under Certification Authority (servername), including capitalization)
4) Expand CAName - right-click Revoked Certificates - All Tasks - Publish.
5) Open %systemroot%\system32\certsrv\certenroll directory and copy CRL file to the CDP locations.
6) Back in CA MMC/Revoked Certs - properties - Check what the CRL Publication Interval is - if it is not at least a month long then write down current setting, increase to be at least a month, and publish another CRL (see #3).  Do not copy this to the CDP locations, but rather to a location like your workstation that isn't getting messed with right now.  You could put it at the CDP locations if you rename it, but keep the regular CRL there for now.  This extended period CRL is your emergency contingency plan for your PKI.
7) Reset CRL timeframe back to original settings so you don't forget later.
8) Right-click CAName - All Tasks - Backup CA... - follow the wizard and select private key and certificate database, do not select incremental, follow rest of wizard.
9) Full backup including system state.
10) Uninstall certificate services from Add or Remove Programs/Windows Components.
11) I don't think you will need to worry about your Exchange server cert, but you can always back it up from Certificates MMC (certmgr.msc) - probably in the Computer Account / Personal Store unless it got installed somewhere else, maybe look under Trusted Roots.  Export including private key to a .pfx file.  Never hurts to have an extra thing backed up.
12) Do whatever you need to for Exchange, if necessary.  Sorry, I'm not your guy for this part.  
13) Disjoin from domain.
14) Reboot server.
15) Rejoin domain.
16) Do what you need to with Exchange first, its much more sensitive to being offline than a CA.
17) Reinstall Cert Services -  Make sure to enter the CAname exactly as the old one or the private key will not like you.
18) Open up CA MMC - right click CAName - All Tasks - Restore CA... and follow the wizard.
19) Reboot server to make sure everything comes up okay.
20) Open CA MMC - issue a new CRL - this will test access to the database and to the private key.  Copy to CDP locations.
21) Full backup including system state.
22) Sit down, relax, drink beer.


It is now up and working.  Thanks all for your comments and help!!  I'll add details and award points tonight.  Thanks again!!!
ParanormasticCryptographic Engineer

Glad to hear everything turned out okay!  Is there anytime else you needed or just haven't had time to follow up to close this out yet?


Thanks for the quick response to my question.  Your answer was accurate and complete.  Thanks all!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.