Wednesday, September 28, 2011

Powershell Commands Part-2

Today i am going to update the next step of installation..... (its Uninsatllation ..... ha ha haaaa).

Steps arise when some modification on custom code on Dev. Environment and want to update production environment.


Step :1

//Unistall

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

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


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

stsadm -o retractsolution -name ******.wsp -local

//Optional
stsadm -o retractsolution -name ******.wsp -immediate -allcontenturls


stsadm -o deletesolution -name ******.wsp -override


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


Step :2

Follow the same sequence of Installation commands which mention on Part-1






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\






Welcome to my Blogger

Its is a great priviledge to share my knowledge with you and to learn many things from all of you....

Kindly add your helpful post/Comment....

Thanking you.