Hello lazy admins!
Have you heard about your company’s AD team? They’re just promoting, demoting, rebooting, reinstalling some DCs…
What?!?!?!? Are you crazy?!?!? Thankyou for telling me the activities you are doing before actually doing them!!! We are just having “SOME” problems on our Exchange server!…
If this doesn’t sound new to you, here is what you need.
Maybe you also see something like this on your event log:
Log Name: Application
Source: MSExchange ADAccess
Date: 29/07/2012 10:40:40
Event ID: 2080
Task Category: Topology
Level: Information
Keywords: Classic
User: N/A
Computer: yourexchangeserver.f.q.d.n
Description:
Process STORE.EXE (PID=2504). Exchange Active Directory Provider has discovered the following servers with the following characteristics:
(Server name | Roles | Enabled | Reachability | Synchronized | GC capable | PDC | SACL right | Critical Data | Netlogon | OS Version)
In-site:
[...]
your-weird-dc.f.q.d.n CD- 1 6 6 0 0 1 1 6 1
[...]
You will see many event like this, normally every 15 minutes, reporting the list of the available domain controllers.
Just take a look at that strange number configuration.
For every line, we have something like:
Server name | Roles | Enabled | Reachability | Synchronized | GC capable | PDC | SACL right | Critical Data | Netlogon | OS Version
good-dc-1.f.q.d.n CDG 1 7 7 1 0 1 1 7 1
good-dc-2.f.q.d.n CDG 1 7 7 1 0 1 1 7 1
I won’t bother you about the meaning of every number, just know that “CDG 1 7 7 1 0 1 1 7 1” is good and “CD- 1 6 6 0 0 1 1 6 1” bad.
If you want to learn more about this, I found this page for the same event in Exchange 2003 and I’m pretty sure the meaning of the codes are the same:
Event ID 2080 from MSExchangeDSAccess http://support.microsoft.com/kb/316300
If you find the updated KB just drop me a message with the right URL for Exchange 2010.
Ok so, let’s go on.
Let’s grab the DC name list and exclude them from your exchange environment:
$dclist = @( "your-weird-dc-1.f.q.d.n","your-weird-dc-2.f.q.d.n","your-weird-dc-3.f.q.d.n" )
Get-ExchangeServer | Set-ExchangeServer -StaticExcludedDomainControllers $dclist
Check with:
Get-ExchangeServer -status | fl Name,StaticExcludedDomainController
and call your boss singing “everything’s gonna be allright… everything’s gonna be allright…”
Then on the following events I’ll see something like:
good-dc-1.f.q.d.n CDG 1 7 7 1 0 1 1 7 1
your-weird-dc.f.q.d.n CD- 0 0 0 0 0 0 0 0 0
good-dc-2.f.q.d.n CDG 1 7 7 1 0 1 1 7 1
Be careful with this configuration, because you can by mistake exclude ALL your DC.
Before to go have a look at:
nltest http://support.microsoft.com/kb/158148
Get-ExchangeServer http://technet.microsoft.com/en-us/library/bb123873.aspx
Get-ExchangeServer http://technet.microsoft.com/en-us/library/bb123716.aspx
nltest /dsgetsite
nltest /dsgetdc:yourADdomain
nltest /dclist:yourADdomain
Ciao!
AR