Cancel all workflows in SharePoint 2010

If you've ever had a glitch where custom workflows are all in an error state or other circumstances where you just need to wipe the slate clean of the workflows genreated in SharePoint, use this PowerShell command from the SharePoint 2010 Management Shell:

foreach ($wf in $web.Workflows){[Microsoft.SharePoint.Workflow.SPWorkflowManager]::CancelWorkflow($wf)}

Comments

Popular posts from this blog

Exchange 2010 Product Keys and Licensing

Renaming a SharePoint server

Migration of Novell to Microsoft