0

 

site.AllWebs | foreach { $_.Lists | foreach { $_.WorkflowAssociations | foreach {
 
 
 
if($_.Name -like “*Previous Version*”)
{#write-host “Site:” $_.ParentWeb.Url “, List:” $_.ParentList.Title “, Workflow:” $_.Name
 
write-host $_.ID//it give the id to me
$_.ParentList.WorkflowAssociations.Remove($_.ID) //
this shows up error.
 
 
(Visited 14 times, 1 visits today)
Add a Comment