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

ADMT fails to migrate SID History

Exchange 2010 event errors 2601, 2604, 2501

Robocopy Error 31 A device attached to the system is not functioning