Enabling Active Directory on a running computer

Recently I found out that it is easier to perform a bare metal restore that is restoring Active Directory on a computer that is not running than on a running computer, could someone elaborate for me the steps to follow to restore Active Directory on a running computer. What is the relationship between Active Directory and Exchange server?
