Installation of the DHCP Users or the DHCP Administrators security group failed because the machine is not a primary domain ...

Installation of the DHCP Users or the DHCP Administrators security group failed because the machine is not a primary domain controller. Error Code: {0}. DHCP requires successful installation of these groups, as only members of these groups can monitor and manage DHCP Server, respectively. User Action: Uninstall and then reinstall the DHCP Server role on a primary domain controller.