This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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" |