For me it was missing one registry key
REG_DWORD "DhcpNodeType" = 1
A easy trick is, if it worked before, you can look under
and compare the difference.
This also fixes an issue opening Group Policy Management showing "RPC server is unavailable"