批量WSP到新服务器场:导出/导入/撤回/添加/安装建议? [英] Bulk WSPs to new farm: Export / Import / Retract / Add / Install recommendations?
问题描述
我有两个服务器场,一个在故障转移环境中,我需要就WSP进行匹配.我们将称其为良好的主FROM_FARM以及要复制到TO_FARM的服务器场.目前,TO_FARM已部署了100多个wsps中的大多数,但不是全部,而且它们可能已经淘汰了 日期.我想删除所有TO_FARM的wsps,并添加所有FROM_FARM的.
I have two farms, one in a failover environment, I need to match regarding WSPs. We'll call the good primary FROM_FARM and the farm I want to copy to TO_FARM. TO_FARM currently has most of the 100+ wsps deployed to it, but not all, plus they may be out of date. I want to remove all of TO_FARM's wsps, and add all of FROM_FARM's.
这就是我的想法:
- 备份所有FROM_FARM wsps( http://joelblogs.co.uk/2011/11/06/uninstall-all-sharepoint-2010-solutions-via-powershell/)
- 从中复制所有wsp文件步骤1到TO_FARM的
- 将步骤3的所有wsps部署到TO_FARM
- 确认.
问题:
- 不确定我将如何执行步骤4.是否有将遍历所有功能并添加所有解决方案的powershell?然后,我可以根据应用程序要求进行手动部署.
- 是否有使用CA的更简单方法? _admin/backup.aspx,选择所有解决方案,然后...?
谢谢!
推荐答案
一旦所有.wsp文件都复制到TO_FARM中,然后具有相同的PS脚本遍历目标目录并进行部署到新农场.如果您在TO_FARM上具有远程设置,则可以像在TO_FARM上一样执行PS命令. 服务器.如果没有,那么您可以在TO_FARM上运行执行相同操作的PS脚本.
Once all the .wsp's are copied to the TO_FARM then have that same PS script loop through the destination directory and deploy to the new farm. If you have remoting setup on the TO_FARM you'll be able to execute PS commands as if you were on the TO_FARM server. If not then you can run a PS script on the TO_FARM that does the same thing.
这篇关于批量WSP到新服务器场:导出/导入/撤回/添加/安装建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!