After you create a workflow, you may want to locate the .XOML files associated with it perhaps to copy it and store in another site. If you have installed Workflow Conductor, you can view the scripts by opening the workflow template in WFC studio. If you have removed the product and need to recover the contents of a PowerShell widget (the script), the workflows are stored in the content database the same way out-of-the-box SharePoint workflows are stored.
-
Open SharePoint Designer on the site collection and navigate to the All Files folder.
-
Within that folder resides a sub-folder called “WorkflowsConductor”.
-
When you click on that folder, you’ll see all the workflows you’ve created both from Workflow Conductor and workflows you create from SharePoint out of the box.
-
Choose the Workflow Conductor workflow you want to recover the PowerShell script from and you will see 3 files
-
Export the .xoml file to your desktop (You can’t edit it in SP Designer)
-
Open the .xoml file in a text editor such as Notepad
-
Search for “PowerShellScript=”
- The text after that is the contents of your PowerShell script
-
It is in HTML, you will need to convert it to plain text. You can do that with this website.
Then you’ll see the script as you pasted it.