I am trying to start Jenkins service but via CMD. This service requires specific credentials, because I set up Jenkins to run only with specific account, not as local system account. When I type:
runas /profile /user:user_1 "net start Jenkins"
CMD asks me for password so I type it correctly – when I typed incorrect one for test I received
1326: The user name or password is incorrect.
However even when I type correct user and password I get
Attempting to start net start Jenkins as user "Z1user_1" ...
and uknown window seems to appear for a split second. When I open services it shows that Jenkins hasn’t started. How can I run specific services that requires credentials from cmd? I know I can run CMD as administrator, but I would like to know another way.