Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 网站集之前的新托管路径_Sharepoint_Powershell_Collections_Path_Managed - Fatal编程技术网

Sharepoint 网站集之前的新托管路径

Sharepoint 网站集之前的新托管路径,sharepoint,powershell,collections,path,managed,Sharepoint,Powershell,Collections,Path,Managed,我已经创建了一个顶级Web应用程序和网站集。 我的网站集的powershell输入为 Get-SPWebTemplate | Where{ $_.Title -eq "Team Site" } | ForEach-Object{ New-SPSite http://teampowershell.sharepoint1c.lab -OwnerAlias SHAREPOINT1C\SP_FARM -Template $_ } 在此之后,我试图在URL上创建一个新的顶级站点 "http://team

我已经创建了一个顶级Web应用程序和网站集。 我的网站集的powershell输入为

Get-SPWebTemplate | Where{ $_.Title -eq "Team Site" } | ForEach-Object{ New-SPSite http://teampowershell.sharepoint1c.lab -OwnerAlias SHAREPOINT1C\SP_FARM -Template $_ }
在此之后,我试图在URL上创建一个新的顶级站点

"http://teams.contoso.com/Finance“使用powershell命令

但我遇到了这个错误

>"New-SPSite : A site collection could not be created as the provided managed pat
h does not exist.  Change the URL to use an existing managed path or create the
 missing managed path prior to calling this command.
At line:1 char:83
+ Get-SPWebTemplate | Where{ $_.Title -eq "Team Site" } | ForEach-Object{ New-S
PSite <<<<  http://teampowershell.sharepoint1c.lab/finance -OwnerAlias SHAREPOI
NT1C\SP_FARM -Template $_ }
    + CategoryInfo          : InvalidData: (Microsoft.Share...SPCmdletNewSite:
   SPCmdletNewSite) [New-SPSite], SPCmdletException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSite"
“新SPSite:无法将网站集创建为提供的托管站点集
h不存在。请更改URL以使用现有托管路径或创建
调用此命令之前缺少托管路径。
第1行字符:83
+获取SPWebTemplate |其中{$\.Title-eq“团队站点”}ForEach对象{New-S

PSite就像您通过管理中心所做的那样,您不指定网站集,而是指定将在其中生存的web应用程序:

New-SPManagedPath [-RelativeURL] "</RelativeURL>" -WebApplication <WebApplication>
新建SPManagedPath[-RelativeURL]“”-WebApplication
New-SPManagedPath [-RelativeURL] "</RelativeURL>" -WebApplication <WebApplication>