Powershell commands to unlock all the task items.
$web=$site.OpenWeb()
$web.url
$i=0
foreach($list in $web.lists)
{
foreach($item in $list.items | where
{$_[[Microsoft.SharePoint.SPBuiltInFieldId]::WorkFlowVersion] -ne 1})
{
if($item["Status"] -eq "In Progress")
{
$item[[Microsoft.SharePoint.SPBuiltInFieldId]::WorkFlowVersion]=1;
$item.Update()
$i++
}
}
}
$web.dispose()
$site.dispose()
Here Workflow version has to be at one to unlock all the workflow items.

Join the conversation! Your thoughts help the community grow.