Skip to content

Instantly share code, notes, and snippets.

View cheeto-bandito's full-sized avatar

Chet Potvin cheeto-bandito

View GitHub Profile
@Gangus
Gangus / gist:fb2674973b5d8acf03e11977fe88358e
Created March 25, 2024 18:11
Bulk Sitecore Workflow update
##path you want the script to execute on, please note the script does not work on the parent item
$rootItem = Get-Item -Path master:"A Valid Sitecore Path"
##grab the guids of your workflow states and the workflow itself and make variables out of them
$desiredWorkflowStateDraft = "a workflow State"
$desiredWorkflowStateAwaitingApproval = "another workflow state"
$desiredWorkflowStateApproved = "another another workflow state"
$desiredWorkflow = "workflow guid"
$desiredDefaultWorkflow = "workflow guid"