Virtua IT, d.o.o.
Kotnikova ulica 35
1000 Ljubljana

T: +386 590 91780

Here are some basic PowerShell commands for adding, deploying, installing and activating SharePoint 2010 solutions and features.

Stsadm Command PowerShell Equivalent
stsadm –o addsolution –name MySharePointSolution.wsp Add-SPSolution c:SolutionsMySharePointSolution.wsp
stsadm –o deploysolution –name MySharePointSolution.wsp –url http://server –allowgacdeployment –immediate Install-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://server -GACDeployment
stsadm –o upgradesolution –name MySharePointSolution.wsp –filename MySharePointSolution.wsp –immediate –allowgacdeployment Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath c:SolutionsMySharePointSolution.wsp –GACDeployment
stsadm -o installfeature -name MyFeature Install-SPFeature -Path “MyFeature”
stsadm -o activatefeature -name MyFeature Enable-SPFeature -Identity “MyFeature”
stsadm -o deactivatefeature -name MyFeature Disable-SPFeature -Identity “MyFeature”
stsadm -o uninstallfeature -name MyFeature Uninstall-SPFeature -Path “MyFeature”
stsadm -o retractsolution -name MySharePointSolution.wsp –url http://server Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://server
stsadm -o deletesolution -name MySharePointSolution.wsp Remove-SPSolution –Identity MySharePointSolution.wsp
stsadm -o execadmsvcjobs Start-SPAdminJob

Further reading

Whole list of mappings between old stsadm and new PowerShell commands

A bit more about PowerShell in SharePoint 2010

Spletno mesto uporablja piškotke zaradi boljše uporabniške izkušnje. Z uporabo naše spletne strani potrjujete, da se z njihovo uporabo strinjate. Več o tem.

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.