/* Author: Jiangong SUN */ Hello, I want to introduce SharePoint solution and feature management using powershell. Before we install a SPSolution, we need to put it on the Farm. Once added, we can install it. If you have some modifications on your so…
使用Visual Studio 2013创建一个可视web 部件,当右击项目选择"部署"时报错: "Error occurred in deployment step 'Add Solution': A feature with ID 15/3e472a61-bbc9-4242-87c7-a07e8e3fab99 has already been installed in this farm. Use the force attribute to explicitly re-…
中文报错: 部署步骤“添加解决方案”中出现错误: 已在此服务器场中安装 ID 为 735efe4e-8b50-4310-b588-c6ae2ba0759f 的功能.请使用强制属性显式地重新安装此功能. 英文报错: Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been installed in this farm.  Use the force attribute to…
覆盖 Uninstall-SPSolution –Identity Caesarstone.GlobalSite.WebSite.wsp –WebApplication http://myserver-sp1:2010/Remove-SPSolution –Identity Caesarstone.GlobalSite.WebSite.wsp -forceAdd-SPSolution C:\Caesarstone.GlobalSite.WebSite.wspInstall-SPSolution…
SharePoint支持将列表保存成列表模板,但当列表包含Lookup字段时,通过模板创建的列表会丢失Lookup字段的信息. 通过PowerShell,可以修改Lookup字段的xml内容. Function Fix-LookupColumn ($webURL, $listName, $columnName, $lookupListName) { #Get web, list and column objects $web = Get-SPWeb $webURL $list = $web.Li…
1.如果想要在SharePoint Online中使用Windows PowerShell,首先需要安装SharePoint Online Management Shell(下载地址附后),如下图: 2.安装完毕,如下图: 3.在开始菜单,即可找到SharePoint Online Management Shell,如下图: 4.点击,即可打开,这里运行连接SharePoint Online 站点的命令,如下图: 5.输入密码以后,发现报错,如下图: 6.纠正以后发现,命令中的Url是Share…
在SharePoint开发时,你会遇到这样一个问题,Global.asax去哪儿?怎样添加一个Global.asax?怎样在Application_Start这个事件处理程序里设置初始化?似乎在Visual Studio中无法像纯ASP.NET开发那样轻松添加一个Global.asax. 当然找到这个Global.asax也不难,打开IIS,右键浏览对应网站,在网站根目录下你可以找到Global.asax.比如我的网站部署在C:\inetpub\wwwroot\wss\VirtualDirect…
摘要: SharePoint 2010之后呢, 建立一个 Team Site会有两个 default page, 分别是 Sitepages/home.aspx and default.aspx. 这两个是不一样的, 我遇到过一个问题是, 每当我输入webapplication的 url 之后, 地址会自动定位到SitePages/home.aspx, 由于某些原因, 我的这个页面是不能显示了. 但是default.aspx还是可以正常显示的,所以我通过使用powershell把默认page 修…
在做CRM与sharepoint集成的时候,需要在sharepoint中上传crmlistcomponent组件,上传后需要激活,但会碰到激活按钮是灰色的无法点击的问题,如下图中这样,包括点击组件后面的下拉箭头点击Active打开的窗口中激活按钮还是灰的 解决这个问题的方法如下,只需进System Setting--Manage service on server,把下图中红框中的服务开启即可.…
1. 获取SSS应用程序的标识 Get-SPServiceApplication 2. 获取指定的SSS应用程序实例 $sss = Get-SPServiceApplication -Identity bc4399ed-a2e0-4397-bf07-cd3d207e630e 3. 启用SSS审计 $sss = Get-SPServiceApplication -Identity bc4399ed-a2e0-4397-bf07-cd3d207e630e Set-SPSecureStoreServi…