简体   繁体   English

installutil未设置登录帐户用户名和密码

[英]installutil not setting logon account username and password

I'm trying to install a new windows service (command line), which succeeds, however for my testing purposes I need to set a specific account/user and password. 我正在尝试安装新的Windows服务(命令行),该服务成功,但是出于测试目的,我需要设置特定的帐户/用户和密码。 I've read plenty of posts and articles arguing I should use: 我已经阅读了大量的文章和文章,认为应该使用:

installutil /user=domain\user /password=password /unattended c:\path\to\exe

which successfully installs my service however when I go into the services window the "Log On As" user is set to "Local System" instead of the username and password i provided, as if it's been ignored. 它成功安装了我的服务,但是当我进入“服务”窗口时,“登录身份”用户设置为“本地系统”,而不是我提供的用户名和密码,就像被忽略了一样。 Am I missing something or are these parameters not what they're intended for? 我是否缺少某些内容,或者这些参数不是它们的预期用途?

Did you have added Installer(right clicking on design of service->Add Installer) for your service? 您是否已为您的服务添加了Installer(右键单击service-> Add Installer的设计)? Can you check the properties for ServiceProcessInstaller instance like below, 您是否可以检查如下所示的ServiceProcessInstaller实例的属性, 在此处输入图片说明

Check whether Account is set to user and if it is Local system just change it. 检查是否将“帐户”设置为“用户”,如果它是“本地系统”,则只需对其进行更改。 And while you are installing using installutil you will be prompted for username/password. 并且在使用installutil安装时,将提示您输入用户名/密码。 Use this for testing purpose and once you are deploying rechange the same. 将其用于测试目的,并在部署后对其进行更改。

Hope it helps! 希望能帮助到你!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用InstallUtil.exe并设置Windows服务密码包含空格 - Using InstallUtil.exe and Setting Windows Service Password Containing Spaces 访问 Windows 服务帐户用户名/密码 - Accessing windows service account username/password 登录失败:用户名未知或密码错误? 但是我使用正确的用户名和密码 - Logon failure: unknown user name or bad password? But I am using the right username and password 设置没有用户名和密码的SMTP Loally - Setting up SMTP loally without username, password 如何获取登录用户名 - How get logon username 我需要登录到特定的配置文件,而不是默认的一个 Outlook,尽管提供了用户名和密码,但它仍然使用默认凭据登录 - I need to login to a specific profile, not the default one outlook, despite provide username and password it still logon with default credentials “ ORA-1017:无效的用户名/密码; 登录被拒绝”,同时尝试使用sys登录 - “ORA-1017: invalid username/password; logon denied” while trying to log in using sys Oracle.ManagedDataAccess.Core 和 ORA-01017:用户名/密码无效; 登录被拒绝 - Oracle.ManagedDataAccess.Core and ORA-01017: invalid username/password; logon denied ASP.NET MVC简单登录页面,用户名和密码匹配,但收到未经授权的消息 - ASP.NET MVC Simple logon page, username & password match but getting unauthorized message 安装Zulu后出现“ ORA-01017:无效的用户名/密码;登录被拒绝”异常 - getting “ORA-01017: invalid username/password;logon denied” exception after installing Zulu
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM