通过Powershell脚本进行WSP部署

通过Powershell脚本进行WSP部署

本文介绍了通过Powershell脚本进行WSP部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过解决方案探索在VS 2012上部署WSP,然后右键单击已部署& amp;的已部署菜单.还有它的

I tried to deploy WSP on VS 2012 its deployed through solution explore right click on deployed menu its deployed & also its

通过SharePoint 2013管理中心用户界面部署.

deployed through SharePoint 2013 Central Administration user interface.

但是当我尝试使用以下给定命令部署WSP时:-

But when I tried to deploy WSP using below given commands:-

  • PS C:\ Users \ Administrator> Add-SPSolution -LiteralPath  " wsp-Path"

O/P:名称              b ;   解决方案编号  已部署
----              nbsp;              ----------                         --------
wsp        b001d331-4996-4877-8aad-ab04d6ae8cfb  错误

O/P: Name                           SolutionId                           Deployed
----                                      ----------                             --------
wsp         b001d331-4996-4877-8aad-ab04d6ae8cfb            False

  • PS C:\ Users \ Administrator> Install-SPSolution -Identity".wsp"  -WebApplication" http://server-name:81/" -GACDeployment -Force

SharePoint 2013管理中心中的>解决方案管理--->管理服务器场解决方案->尚未部署

In SharePoint 2013 Central Administration --> Solution Management ---> Manage farm solutions--> Not deployed 

我也无法从网站集中的wsp访问Web部件.

Also I cant access the web parts from wsp in site collection.

请帮助我解决问题.

推荐答案

请您在下面尝试一下

http://www.c-sharpcorner.com/UploadFile/5b1f04/add-and-deploy-solution-in-sharepoint-central-administration/

http://www.c-sharpcorner.com/UploadFile/5b1f04/add-and-deploy-solution-in-sharepoint-central-administration/

https://social.technet.microsoft.com/Forums/office/zh-CN/5bd4734c-e046-4eb3-b9ac-6ea6f240db5e/wsp-deployment-using-powershell-scripts?forum=sharepointadminprevious

https://social.technet.microsoft.com/Forums/office/en-US/5bd4734c-e046-4eb3-b9ac-6ea6f240db5e/wsp-deployment-using-powershell-scripts?forum=sharepointadminprevious


这篇关于通过Powershell脚本进行WSP部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 03:44