Pages

Search This Blog

Sunday, July 8, 2012

OMG !! Exchange Security Groups were deleted accidentally

I was working with one of our clients for an Exchange admins permission assignments when he came with a question “What will happened if Microsoft Exchange Security Groups were deleted for a running Exchange 2010 organization ? “ . My simple answer was “You can simply restore it from an Active Directory backup ; Or even better , using Active Directory Recycle Bin ( if previously implemented )”

But what if I have neither valid backup nor Active Directory recycle Bin is enabled ?”  He replied . Since I have never faced such issue, I decided to simulate it in a lab and here what I got .

On my lab , I went to Active Directory Users and Computers and deleted all Microsoft Exchange Security Groups

image

As you might know that those groups are created during the processing of Setup /PrepareAD command upon first Exchange server installation. So , I tried to execute Setup /PrepareAD again , when I got the following error : 

image

The error indicates that the failure was due to that OtherWellKnownObjects attribute on Microsoft Exchange container is pointing to an invalid DN or a deleted object.

Trying to fix the issue using ADSI Edit snap-in failed with the following error :

image

So , I decided to use LDP.exe to modify the OtherWellKnownObjects attribute [ ldp.exe from run ] . Once LDP opened , I made a connection [  Connections then Connect.. ]

image

When the Connect window appears , I clicked OK to connect to the local server ( If you are going to connect to a remote server insert the name of the server then click OK )

image

After connection is in place , I went to View tab and clicked on Tree

image

At Tree View window I choosed to view Configuration partition as a BaseDN

image

By now I was able to view configuration partition but as you can see all available is the root only

image

In order to view all root children I bind by going to Connection tab then click Bind

image

At Bind window , I clicked OK to bind with the currently logged on user

image

Now all children objects are shown Open-mouthed smile

image

I expanded to CN=Microsoft Exchange , right click and choosed Modify

image

At Modify window I did the following :

  1. Entered OtherWellKnownObjects  as the attribute [ leaved the values blank ]
  2. Choosed Replace as the to be performed operation
  3. Clicked  Enter , so entry list is populated
  4. Clicked Run , so attribute value is modified

image

Opening back ADSI Edit shows that OtherWellKnowObjects attribute has no value ( modified successfully )

image

Now , Setup.com /PrepareAD  was completed successfully

image

As a result of Setup.com /PrepareAD  execution success , all Exchange 2010 security groups were re-created again , as below :

image

Finally , I re added my Exchange server to both Exchange Servers & Exchange Trusted Subsystems groups ( membership lost due to groups deletion / recreation , hence the same was must be done for Exchange admins )

image

image

Now, my Exchange Security Groups are in place with all Exchange servers and Exchange admins . Finally I performed Exchange servers reboot so that all is up and running .Hot smile

No comments:

Post a Comment