Skip to main content

Cloud

Install Nintex Workflow 2010 Feature to All Webs in a Site Collection

OOTB, Nintex Workflow 2010 requires activation of the site collection feature after installation of the product, and then activation of site features on each and every site within the applicable site collection. This is done such that the Nintex Workflow Designer is available on each of these sites. For small site collections this is fine, but what if you have a very large site collection and wish to activate the site feature on each and every site automatically?This could take a very long time to do manually.A quick solution to this is to use PowerShell to automate the process.This should be done within the SharePoint 2010 Management Shell, but can also be done from the Windows PowerShell console by loading the SharePoint snap-ins.Click here for instructions on this.

 

The PowerShell script should do the following.

 

1.Install Nintex Workflow 2010 on your SharePoint servers (installation instruction here).

2.Store the site collection Url as a variable.

3.Create an object representing the site collection.

4.Execute stsadm to activate the site collection feature.

5.Iterate through each web within the site collection and activate the site feature.

 

Here is the script.

 

$sitecolurl = “http://www.yoursharepointapp.com/sites/sitecollectionurlenteredhere”

$site=new-object Microsoft.SharePoint.SPSite($sitecolurl)

# activate site collection feature

stsadm -o activatefeature -n nintexworkflow -url $sitecolurl

foreach($web in $site.AllWebs)

{

# activate site feature

stsadm -o activatefeature -n nintexworkflowweb -url $web.Url

}

 

Execute the above script by saving it as a .ps1 file, or by copying and pasting it directly into a SharePoint 2010 Management Shell.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

PointBridge Blogs

More from this Author

Follow Us