加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码网 (https://www.900php.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

windows-7 – 无法成功运行Sharepoint Foundation 2010第一次配

发布时间:2020-12-30 13:14:50 所属栏目:Windows 来源:网络整理
导读:我正在尝试使用power shell运行非GUI版本的配置向导,因为我想设置config和admin数据库名称. GUI向导不会为您提供所有可能的配置选项(但即使它没有这样做). 我运行这个命令: New-SPConfigurationDatabase -DatabaseName "Sharepoint2010Config" -DatabaseS

我正在尝试使用power shell运行非GUI版本的配置向导,因为我想设置config和admin数据库名称. GUI向导不会为您提供所有可能的配置选项(但即使它没有这样做).

我运行这个命令:

New-SPConfigurationDatabase
    -DatabaseName "Sharepoint2010Config"
    -DatabaseServer "developer.mydomain.pri"
    -AdministrationContentDatabaseName "Sharepoint2010Admin"
    -DatabaseCredentials (Get-Credential)
    -Passphrase (ConvertTo-SecureString "%h4r3p0int" -AsPlainText -Force)

当然所有这些都在同一条线上.我把它们分成不同的行,以便于阅读.当我运行此命令时,我收到此错误:

New-SPConfigurationDatabase : Cannot connect to database master at SQL server a
t developer.mydomain.pri. The database might not exist,or the current user does
not have permission to connect to it.
At line:1 char:28
+ New-SPConfigurationDatabase <<<<  -DatabaseName "Sharepoint2010Config" -Datab
aseServer "developer.mydomain.pri" -AdministrationContentDatabaseName "Sharepoint
2010Admin" -DatabaseCredentials (Get-Credential) -Passphrase (ConvertTo-SecureS
tring "%h4r3p0int" -AsPlainText -Force)
    + CategoryInfo          : InvalidData: (Microsoft.Share...urationDatabase:
   SPCmdletNewSPConfigurationDatabase) [New-SPConfigurationDatabase],SPExcep
  tion
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPCon
   figurationDatabase

我创建了两个域帐户,但没有将它们添加到任何组:

> SPF_DATABASE – 数据库帐户
> SPF_ADMIN – 场帐户

我正在运行powershell控制台作为域管理员.我曾尝试将SQL Management Studio作为域管理员运行并创建了一个虚拟数据库,并且它没有问题.

我在跑:

>应安装Sharepoint Foundation 2010的计算机上的Windows 7 x64,并且还预装了SQL Server 2008 R2数据库
> Windows Server 2008 R2服务器核心是我的域控制器,它只提供域功能而不提供任何其他功能

我根据MS指南http://msdn.microsoft.com/en-us/library/ee554869%28office.14%29.aspx安装了Sharepoint,安装了与我的配置相关的所有其他补丁.

任何想法我应该怎么做才能使它工作?

您似乎缺少cmdlet所需的FarmCredentials参数.

如果这没有帮助,您可能需要以管理员身份运行Powershell控制台才能使命令正常工作.

http://technet.microsoft.com/en-us/library/ff607838.aspx

(编辑:源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读