Good morning,
I'm writing installation procedure for a product, which embeds a Windows service. In order to install that service, a wrapper is used, referring to a configuration (java -jar wrapper.jar -i <product>.conf).
Now there seems to be some link towards the account: when a Windows service is installed as Account1, then it can't be started/stopped by Account2.
So, I (Account2) would like to interrogate the Windows service, and say "If you are installed by Account1, then you need to be uninstalled and I'll install you myself".
Now the question: how can I know which account has installed the mentioned Windows service? I've already tried:
sc query <Service_Name>sc qc <Service_Name>sc qprivs <Service_Name>sc qmanagedaccount <Service_Name>sc quserservice <Service_Name>wmic service <Service_Name> list full
(You see, I'm getting desperate :-) )
None of the mentioned commands has given the username "Account1".
Does anybody know how to do this?