当前位置:网站首页>部署、收回和删除解决方式—-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
边栏推荐
- 【函数递归】简单递归的5个经典例子,你都会吗?
- 使用高斯Redis实现二级索引
- 恶魔奶爸 指南帖——简易版
- Small guide for rapid formation of manipulator (11): standard nomenclature of coordinate system
- 九度 1201 -二叉排序数遍历- 二叉排序树「建议收藏」
- EasyGBS级联时,上级平台重启导致推流失败、画面卡住该如何解决?
- Splicing and splitting of integer ints
- 【论文阅读】MAPS: Multi-agent Reinforcement Learning-based Portfolio Management System
- Introduction to referer and referer policy
- Is embedded system really safe? [how does onespin comprehensively solve the IC integrity problem for the development team]
猜你喜欢
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
如何满足医疗设备对安全性和保密性的双重需求?
上海交大最新《标签高效深度分割》研究进展综述,全面阐述无监督、粗监督、不完全监督和噪声监督的深度分割方法
【C语言】指针进阶---指针你真的学懂了吗?
Codesonar Webinar
Mrs offline data analysis: process OBS data through Flink job
AADL inspector fault tree safety analysis module
嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
使用高斯Redis实现二级索引
Onespin | solve the problems of hardware Trojan horse and security trust in IC Design
随机推荐
When easygbs cascades, how to solve the streaming failure and screen jam caused by the restart of the superior platform?
Lingyun going to sea | saihe & Huawei cloud: jointly help the sustainable development of cross-border e-commerce industry
恶魔奶爸 B3 少量泛读,完成两万词汇量+
4G设备接入EasyGBS平台出现流量消耗异常,是什么原因?
[concept of network principle]
恶魔奶爸 A1 语音听力初挑战
开发一个小程序商城需要多少钱?
Static analysis of software defects codesonar 5.2 release
How to choose financial products? Novice doesn't know anything
使用高斯Redis实现二级索引
图扑数字孪生煤矿开采系统,打造采煤“硬实力”
AADL Inspector 故障树安全分析模块
One click deployment of any version of redis
H3C s7000/s7500e/10500 series post stack BFD detection configuration method
ISO 26262 - 基于需求测试以外的考虑因素
【OpenCV 例程200篇】223. 特征提取之多边形拟合(cv.approxPolyDP)
H3C S7000/S7500E/10500系列堆叠后BFD检测配置方法
The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization
Precautions for cjson memory leakage
OneSpin | 解决IC设计中的硬件木马和安全信任问题