当前位置:网站首页>部署、收回和删除解决方式—-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.wspPowerShell
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个经典例子,你都会吗?
- 想杀死某个端口进程,但在服务列表中却找不到,可以之间通过命令行找到这个进程并杀死该进程,减少重启电脑和找到问题根源。
- [concept of network principle]
- 95年专注安全这一件事 沃尔沃未来聚焦智能驾驶与电气化领域安全
- 软件缺陷静态分析 CodeSonar 5.2 新版发布
- Implement secondary index with Gaussian redis
- 测量楼的高度
- Apifox interface integrated management new artifact
- Prometheus remote_write InfluxDB,unable to parse authentication credentials,authorization failed
- 恶魔奶爸 A0 英文零基础的自我提升路
猜你喜欢
Codesonar enhances software reliability through innovative static analysis

H3C s7000/s7500e/10500 series post stack BFD detection configuration method
![[MySQL - Basic] transactions](/img/a4/52c4b156b107c1e2f0220b4379eab2.png)
[MySQL - Basic] transactions

CodeSonar如何帮助无人机查找软件缺陷?

C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)

The latest version of codesonar has improved functional security and supports Misra, c++ parsing and visualization

Nebula importer data import practice

Network principle (1) - overview of basic principles

最新版本的CodeSonar改进了功能安全性,支持MISRA,C ++解析和可视化

机械臂速成小指南(十二):逆运动学分析
随机推荐
[MySQL - Basic] transactions
Measure the height of the building
OneSpin 360 DV新版发布,刷新FPGA形式化验证功能体验
论文解读(ValidUtil)《Rethinking the Setting of Semi-supervised Learning on Graphs》
【函数递归】简单递归的5个经典例子,你都会吗?
Mrs offline data analysis: process OBS data through Flink job
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
Cantata9.0 | new features
Flask1.1.4 werkzeug1.0.1 source code analysis: Routing
[solution] package 'XXXX' is not in goroot
使用枚举实现英文转盲文
JNI 初级接触
程序猿赚的那点钱算个P啊!
Lingyun going to sea | yidiantianxia & Huawei cloud: promoting the globalization of Chinese e-commerce enterprise brands
有用的win11小技巧
【奖励公示】第22期 2022年6月奖励名单公示:社区明星评选 | 新人奖 | 博客同步 | 推荐奖
【网络原理的概念】
Referrer和Referrer-Policy简介
Nebula Importer 数据导入实践
恶魔奶爸 B2 突破语法,完成正统口语练习