Installation window services prompt error [SC] OpenSCManager FAILED 5

E: \ SourceCode \ bin> sc create recservice binpath= E:\SourceCode\bin\record_service.exe

[SC] OpenSCManager FAILED 5:
Access is denied.

This problem is insufficient permissions, but in their own local operation how insufficient permissions, it is very confused, and then search found
The registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ System\EnableLUA changed to 0
Change this value to 0 so that you still have real Administration on your own computer
One more thing to note when creating a service using SC Create is that the following parameter, binpath=, must be correct!
Otherwise, the above errors will also occur!

Read More: