我想在 SharePoint 2010 Web 应用程序 http://portal.contoso.com 中创建多个网站集,如 http://site1.contoso.com 、http://site2.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 运行命令,但这根本没有执行。
这是我的问题。
- 我
- 想知道我的方向是否正确?
- 有没有更好的方法来达到相同的结果?
我能够根据博客中提供的信息使用Powershell脚本创建主机命名网站集(HNSC),但如果有任何更好的解决方案,我愿意接受任何其他通过其他方式实现相同目标的建议。
http://blogs.msdn.com/b/markarend/archive/2012/05/30/host-named-site-collections-hnsc-for-sharepoint-2010-architects.aspx