You are trying to create entries for a service, something that can be done using differnet methods
. The security value that you see is not a password and is system specific, it is created when you create a new service.
The key you are looking at is also not correct as it reflects what can be found in HKLM\System\CurrentControlSet\Services\...
. There may also be entries under HKLM\System\CurrentControlSet\Enum\Root\LEGACY_...
depending on the type of service created. It is best not make those entries by hand but to use some API function instead.
Try the command line tool sc.exe
that comes with windows. A simpe
sc.exe create /?
will give you the syntax. It supports specifying an account and password for the new service.