-
-
Save blinds52/c74a1935e86307f992fda073cfe2eabd to your computer and use it in GitHub Desktop.
Powershell Workflow - export to Xaml file
This file contains hidden or 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
| #powershell workflow - export to xaml file | |
| workflow PsWfExample { | |
| param([String[]]$Services) | |
| foreach -parallel ($svc in $Services){ | |
| $svc | |
| } | |
| } | |
| #get the serialized xaml content | |
| $MyPsWorkflow = Get-Command PsWfExample | select -ExpandProperty XamlDefinition | |
| #write the xaml to a file | |
| $MyPsWorkflow | Set-Content -path "C:\XamlWorkflows\PsWfExample.xaml" -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment