Net Logon Service won’t start after demoting a domain controller

Today I had to perform a domain upgrade at one of our customers. After succesfully demoting the old Windows 2003 domain controllers, the Netlogon service won’t start anymore.

“Could not start the Net Logon service on Local Computer.
Error 1075: The dependency service does not exist or has been marked for deletion.”

After some reserch I found the solution.

1.) Start the registry editor (Regedit.exe).
2.) Navigate to the following registry key HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Netlogon/
3.) In the right pane, double-click the DependOnService value .
4.) In the Multi-String Editor dialog box, type the following strings on separate lines, and then click OK
Remove any other entries.
5.) Exit the registry editor and restart the server