Monday, September 26, 2011

Powershell Commands Part-1

As currently working on Sharepoint 2010. I am very excited to share those things which i learn from my mistakes....

Many people ask me, how will you add/deploy your custom code on sharepoint production site? it was really tough to answer...

so, i am posting the powershell commands. hope, it will help you.

//Install
stsadm -o addsolution -filename "Path\*****.wsp"


Install-spsolution –identity *****.wsp –gacdeployment
//After this command dll placed into GAC and  Feature.xml created into 14 halve\Templates\FEATURES Folder

//Always
stsadm -o uninstallfeature -filename Feature Folder Name\feature.xml

stsadm -o installfeature -filename Feature Folder Name\feature.xml


stsadm -o activatefeature -filename Feature Folder Name\feature.xml -url http://domainname:port -force

Note : find your Featue Folder Name  from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\






No comments:

Post a Comment