I want to add a certificate to the certificate store belonging to a Windows service, from the command line. So far, the only thing I've found is:
certutil -service -store ADAM_Instance-Name\My
When I run it (logged on as myself, in a Command Prompt as Administrator) it returns:
ADAM_Instance-Name\My CertUtil: -store command FAILED: 0x80070057 (WIN32: 87) CertUtil: The parameter is incorrect.
I've tried wrapping the Service\Store name in double quotes (same result) and single quotes (same result) and using a forward slash or space instead of the backslash, both giving:
ADAM_Instance-Name\My CertUtil: -store command FAILED: 0x80070002 (WIN32: 2) CertUtil: The system cannot find the file specified.
Can anyone help with the syntax for this command, or help with an alternative method?