无法通过 SharePoint Managment Shell 为 SharePoint 2010 创建网站集
Can't create a site collection through SharePoint Managment Shell for SharePoint 2010
我尝试 运行 与此处相同的命令 -https://technet.microsoft.com/en-us/library/cc263165(v=office.14).aspx .
$template = Get-SPWebTemplate "STS#0"
New-SPSite -Url "http://web-application-name/sitecollection1" -OwnerAlias "domain\administrator" -Template $template
我收到以下错误:
New-SPSite:无法创建网站集作为提供的托管 pat
h 不存在。更改 URL 以使用现有的托管路径或创建
在调用此命令之前缺少管理路径。
这个错误是什么意思?我错过了什么?
1.$template = Get-SPWebTemplate "STS#0"
如果您在 运行 此命令时遇到错误,请使用此 link https://support.microsoft.com/en-us/help/2796733/sharepoint-2010-management-shell-does-not-load-with-windows-powershell-3.0
修复它
2.Create 托管路径
New-SPManagedPath -RelativeURL "sitecollection1" -WebApplication "web-application-name"
3.Create 网站集
New-SPSite -URL "http://web-application-name/sites/sitecollection1"-OwnerAlias "domain\administrator" -Template $template
我不太清楚如何使用如下路径创建网站集:
http://web-application-name/sitecollection2
但是这个解决方案可以满足我的需要。
我尝试 运行 与此处相同的命令 -https://technet.microsoft.com/en-us/library/cc263165(v=office.14).aspx .
$template = Get-SPWebTemplate "STS#0"
New-SPSite -Url "http://web-application-name/sitecollection1" -OwnerAlias "domain\administrator" -Template $template
我收到以下错误: New-SPSite:无法创建网站集作为提供的托管 pat h 不存在。更改 URL 以使用现有的托管路径或创建 在调用此命令之前缺少管理路径。
这个错误是什么意思?我错过了什么?
1.$template = Get-SPWebTemplate "STS#0"
如果您在 运行 此命令时遇到错误,请使用此 link https://support.microsoft.com/en-us/help/2796733/sharepoint-2010-management-shell-does-not-load-with-windows-powershell-3.0 修复它
2.Create 托管路径
New-SPManagedPath -RelativeURL "sitecollection1" -WebApplication "web-application-name"
3.Create 网站集
New-SPSite -URL "http://web-application-name/sites/sitecollection1"-OwnerAlias "domain\administrator" -Template $template
我不太清楚如何使用如下路径创建网站集: http://web-application-name/sitecollection2 但是这个解决方案可以满足我的需要。