Ir al contenido principal

Entradas

Mostrando entradas de abril, 2016

SharePoint Workflows Inventory Report using PowerShell

This is a PowerShell version to find all workflows deployed in the SharePoint environment to generate the workflows Inventory report. Basically, this script iterates through all site collections-sites-List objects to fetch workflow data such as: Workflow Name, Running instances, etc. #For SharePoint 2007 Compatibility [void][System.Reflection.Assembly]::LoadWithPartialName( "Microsoft.SharePoint" )   Function global:Get -SPWebApplication ( $WebAppURL ) {   return [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup( $WebAppURL ) }   #Function to Get the workflow inventory for the entire web application function Get -WorkflowInventory ([string] $WebAppURL ) {      #Get the Web Application URL      $WebApp = Get -SPWebApplication $WebAppURL            #Iterate through each site collection      foreach ( $Site in $WebApp .Sites)            {                                               #Loop through each site