当前位置:网站首页>部署、收回和删除解决方式—-STSADM和PowerShell「建议收藏」
部署、收回和删除解决方式—-STSADM和PowerShell「建议收藏」
2022-07-07 18:44:00 【全栈程序员站长】
大家好,又见面了,我是全栈君。
部署、收回和删除解决方式—-STSADM和PowerShell
由于近期总是要部署wsp解决方式,所以常常要用到命令行或者PowerShell。所以有必要将命令集中放在这里。在部署的时候可以高速的參考。
STSADM
stsadm -o addsolution –filename c:\bin\CustomerSiteSearch.wsp
stsadm -o deploysolution –name CustomerSiteSearch.wsp -url http://[ServerName] -allowgacdeployment -force –immediate
stsadm -o activatefeature –name customersitesearch -url http://[ServerName] -force
stsadm -o retractsolution -name solutionName.wsp -immediate
stsadm -o deletesolution -name solutionName.wsp
PowerShell
Add-SPSolution c:\bin\CustomerSiteSearch.wsp
Install-SPSolution -Identity CustomerSiteSearch.wsp -AllWebApplications -GACDeployment
Enable-SPFeature CustomerSiteSearch_feature1 -url http://[ServerName]/ –force
Uninstall-SPSolution -identity solutionName.wsp
Remove-SPSolution -identity solutionName.wsp
关于PowerShell:
- STSADM命令对于SharePoint 2010仍然实用,可是官方不赞成了。PowerShell取而代之。
- PowerShell能够做到STSADM能做到的全部事情,并且很多其它,也更快。
- PowerShell命令大写和小写不敏感。
- 和STSADM一样。PowerShell必须执行在SharePoint Server上。
- PowerShell必须使用管理员身份执行。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/116445.html原文链接:https://javaforall.cn
边栏推荐
- How to meet the dual needs of security and confidentiality of medical devices?
- 数值法求解最优控制问题(〇)——定义
- Validutil, "Rethinking the setting of semi supervised learning on graphs"
- 恶魔奶爸 A3阶段 近常速语流初接触
- 静态测试工具
- 实战:sqlserver 2008 扩展事件-XML转换为标准的table格式[通俗易懂]
- POJ 1742 Coins ( 单调队列解法 )「建议收藏」
- 恢复持久卷上的备份数据
- 使用camunda做工作流设计,驳回操作
- Useful win11 tips
猜你喜欢
Implement secondary index with Gaussian redis
I Basic concepts
Static analysis of software defects codesonar 5.2 release
Dachang classic pointer written test questions
SQL注入报错注入函数图文详解
机械臂速成小指南(十一):坐标系的标准命名
Airiot helps the urban pipe gallery project, and smart IOT guards the lifeline of the city
神兵利器——敏感文件发现工具
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
One click deployment of any version of redis
随机推荐
如何满足医疗设备对安全性和保密性的双重需求?
实战:sqlserver 2008 扩展事件-XML转换为标准的table格式[通俗易懂]
华为CE交换机下载文件FTP步骤
使用高斯Redis实现二级索引
guava多线程,futurecallback线程调用不平均
FTP steps for downloading files from Huawei CE switches
Small guide for rapid formation of manipulator (12): inverse kinematics analysis
npm uninstall和rm直接删除的区别
【解决】package ‘xxxx‘ is not in GOROOT
H3C S7000/S7500E/10500系列堆叠后BFD检测配置方法
Lingyun going to sea | yidiantianxia & Huawei cloud: promoting the globalization of Chinese e-commerce enterprise brands
Cantata9.0 | 全 新 功 能
Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
取两个集合的交集
恶魔奶爸 C
恶魔奶爸 指南帖——简易版
微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹
One click deployment of any version of redis
Phoenix JDBC
Codesonar enhances software reliability through innovative static analysis