Created
November 21, 2017 22:16
-
-
Save orosandrei/dea48adb8c07259b5aaedd8a7c1953a3 to your computer and use it in GitHub Desktop.
Powershell Workflow - export to Xaml file
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
#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