Wednesday 6 April 2016

To remove protection that prevents an OU from accidental deletion


  1. Log on to the computer as a member of the Domain Admins group.
  2. Open Active Directory Users and Computers.
  3. Click View, and then click Advanced Features.
  4. First, clear permissions on the OU for which you want to remove protection. To do this, right-click the OU, and then click Properties.
  5. In OU Properties, click the Security tab, and then click Advanced.
  6. In Permission Entries, select the Deny entry for the Everyone group, and then click Remove.
  7. Click OK to close the Advanced Security Settings, and then click OK to close OU Properties.
  8. Second, clear permissions on the parent container of the OU for which you want to remove protection. To do this, right-click the parent container, and then clickProperties.
  9. In ContainerProperties, click the Security tab.
  10. In Group or user names, select the Everyone group, and then clear the Deny check box for Delete All Child Objects, and then click OK to close Container Properties.

Tuesday 5 April 2016

DHCP - Event ID 1046 - Authorized issue.

To resolve this issue, follow these steps:
  1. Start the Active Directory Service Interfaces (ADSI) Edit MMC snap-in. To do this, follow these steps:
    1. Click Start, click Run, type Adsiedit.msc, and then click OK.
    2. Click Tools, and then click ADSI Edit.
  2. In the console tree, expand the Configuration container, expand CN=Configuration, expand CN=Services, and then expand CN=NetServices.
  3. In the details pane, you may find objects that resemble the following:
    CNF:<GUID>,CN=NetServices,CN=Services,CN=Configuration, domain
  4. Right-click the objects, and then click Delete.
  5. Exit the ADSI Edit MMC snap-in.
Verify that the DHCP server becomes authorized after active directory replication is complete.

Force Active Directory replication on a domain controller

In order to force Active Directory replication, issue the command ‘repadmin /syncall /AeD’ on the domain controller.  Run this command on the domain controller in which you wish to update the Active Directory database for.  For example if DC2 is out of Sync, run the command on DC2.

A = All Partitions
e = Enterprise (Cross Site)
D = Identify servers by distinguished name in messages. 

By default this does a pull replication - which is how AD works by default.  If you want to do a push replication use the following command:

repadmin /syncall /APeD

P = Push

You want to do a push replication if you make changes on a DC and you want to replicate those changes to all other DC's.  For example, you make a change on DC1 and you want all other changes to get that change instantly, run repadmin /syncall /APeD on DC1.

For view the replication status 

repadmin /showrepl
repadmin /showrepl <dcname>

repadmin /showrepl * /csv >showrepl.csv