Skip to content

Instantly share code, notes, and snippets.

View orosandrei's full-sized avatar
🏛️
back to basics

Andrei Oros orosandrei

🏛️
back to basics
View GitHub Profile
@orosandrei
orosandrei / powershell-workflow-to-xaml.ps1
Created November 21, 2017 22:16
Powershell Workflow - export to Xaml file
#powershell workflow - export to xaml file
workflow PsWfExample {
param([String[]]$Services)
foreach -parallel ($svc in $Services){
$svc
}
}
#get the serialized xaml content
@orosandrei
orosandrei / powershell-workflow-inargument-types.ps1
Last active November 21, 2017 22:14
Powershell Workflow InArguments object type sample: the objects can have complex types (not just String, Int)
#Powershell Workflow InArguments object type sample: the objects can have complex types (not just String, Int)
workflow paralleltest {
param(
[Object[]]$ServicesList,
[System.ServiceProcess.ServiceController]$FirstService
)
InlineScript { Write-Host "output single FirstService object:"}