如何在SharePoint Server 2010(MOSS)中的单个Web应用程序上以root身份创建多个网站集

时间:2013-09-12 11:37:46

标签: sharepoint-2010 sitecollection

我想在SharePoint 2010网络应用程序http://site1.contoso.com中创建多个网站集,例如http://site2.contoso.comhttp://portal.contoso.com。所以我已经按照主机命名的网站集方法建议了 http://technet.microsoft.com/en-us/library/cc424952(v=office.14).aspx

我尝试在powershell上运行以下命令

New-SPWebApplication -Name "HNSC01" -Port 80 -HostHeader http://HNSC01.contoso.com -URL -ApplicationPool ContosoAppPool -ApplicationPoolAccount (Get-SPManagedAccount <server>\<user>) 

这里的URL似乎不合适,因为它是参数我尝试运行带有URL的命令,而这根本没有被执行。

以下是我的问题。

     
  1. 我想知道我是否朝着正确的方向前进?
  2.  
  3. 有更好的方法可以达到相同的效果吗?

1 个答案:

答案 0 :(得分:0)

我可以根据博客中提供的信息使用powershell脚本创建主机命名网站集(HNSC),但如果有更好的解决方案,我可以通过其他方式实现相同目标的任何其他建议。

http://blogs.msdn.com/b/markarend/archive/2012/05/30/host-named-site-collections-hnsc-for-sharepoint-2010-architects.aspx