Microsoft SQL Server 2012 Powershell安装“SQLSERVERAGENT”错误(Microsoft SQL Server 2012 Powershell instal

编程入门 行业动态 更新时间:2024-10-28 06:26:57
Microsoft SQL Server 2012 Powershell安装“SQLSERVERAGENT”错误(Microsoft SQL Server 2012 Powershell install 'SQLSERVERAGENT' error)

我正在尝试通过Powershell在本地安装SQL Server 2012并继续遇到错误:

The following error occurred: The credentials you provided for the 'SQLSERVERAGENT' service is invalid. Error result: -2068578304 Result facility code: 1204 Result error code: 0

以下是执行安装的简单行。

&'D:\FilePath\setup.exe' /QS /ConfigurationFile=C:\FilePath\ConfigurationFile.ini

在ConfigurationFile.ini中,以下内容:

SQLSVCACCOUNT="HT\SqlSrvBK" SQLSVCPASSWORD="P@ssWord!@#$"

对于ConfigurationFile.ini来说还有更多,但它们是与我认为的问题相关的主线。

我也试过直接传递密码,例如:

&'D:\FilePath\setup.exe' /QS /ConfigurationFile=C:\FilePath\ConfigurationFile.ini /SQLSVCPASSWORD="P@ssWord!@#$"

还试过从Powershell获取它作为字符串或安全字符串,并转义任何将被提出的符号,如“$”。 我肯定密码是正确的,因为通过GUI运行该过程100%的时间。 我的环境在Windows服务器2012上,与VMware一起运行。 我尝试过本地管理员帐户以及域管理员帐户。 感谢您提出任何建议和/或帮助。

I'm trying to locally install SQL Server 2012 via Powershell and keep running into the error:

The following error occurred: The credentials you provided for the 'SQLSERVERAGENT' service is invalid. Error result: -2068578304 Result facility code: 1204 Result error code: 0

The following is the simple line for executing the install.

&'D:\FilePath\setup.exe' /QS /ConfigurationFile=C:\FilePath\ConfigurationFile.ini

In the ConfigurationFile.ini the following:

SQLSVCACCOUNT="HT\SqlSrvBK" SQLSVCPASSWORD="P@ssWord!@#$"

Granted there's more to the ConfigurationFile.ini but they are the main lines related the the issue I believe.

I have also tried to pass the password in directly such as:

&'D:\FilePath\setup.exe' /QS /ConfigurationFile=C:\FilePath\ConfigurationFile.ini /SQLSVCPASSWORD="P@ssWord!@#$"

Also tried is getting it from the Powershell as a string or a secure string and escaping any symbols that would get fileted out such as "$". I'm positive the password is correct as running the process via the GUI works 100% of the time. My environment is on Windows server 2012, being ran with VMware. I have tried local admin accounts as well as domain admin accounts. Thank you for any advice and/or help.

最满意答案

你不是缺少AGTSVCACCOUNT和AGTSVCPASSWORD变量吗? 您的示例仅指定数据库引擎服务的凭据,而不是代理服务。

Aren't you missing AGTSVCACCOUNT and AGTSVCPASSWORD variables? Your example only specifies the credentials for the database engine service, not the agent service.

更多推荐

本文发布于:2023-08-04 04:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1409459.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Server   SQL   Microsoft   install

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!