Showing posts from December, 2013

SharePoint 2007 – Content Audit: Print All Workflows

In this post I would discuss the PowerShell script to query all workflows in SharePoint farm. You may have deployed custom Workflow solutions like custom activities available on CodePlex or built workflows in SharePoint Designer or Visual Studio. It’s important to understand what sort of workflows you have running in your environment & their upgradability to properly plan an upgrade project.There is no way in SharePoint to say whether a workflow has been built on SharePoint Designer or Visual Studio. Thus, we would use the SPList Workflow Associations property to get all Workflows & then filter-out the ones we don’t care like standard approval workflows. [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") # Print all workflows in Web Application function PrintWorkflowDetails(){ $rootSite = new-object Microsoft.SharePoint.SPSite(""); $webApp = $rootSite.WebApplication; foreach($site in $webApp.Sites){ foreach($web…