/PowershellConnector

This repository is a mirror of https://gitlab.com/sequence/connectors/pwsh

Primary LanguageC#Apache License 2.0Apache-2.0

Sequence PowerShell Connector

Sequence® is a collection of libraries for automation of cross-application e-discovery and forensic workflows.

The PowerShell connector contains Steps for executing inline PowerShell scripts in Sequences.

Examples

Run an inline script that returns two PSObjects and prints them:

- ForEach
    Array: (PwshRunScript Script: "@( [pscustomobject]@{ prop1 = 'one'; prop2 = 2 }, [pscustomobject]@{ prop1 = 'three'; prop2 = 4 }) | Write-Output")
    Action: (Print (GetVariable <entity>))

Run a script that receives input as an Entity stream:

- <Input> = [
    (prop1: "value1" prop2: 2),
    (prop1: "value3" prop2: 4)
  ]
- ForEach
    Array: (PwshRunScript
        Script: "$input | ForEach-Object { Write-Output $_ }"
        Input: <Input>
    )
    Action: (Print (GetVariable <entity>))

Documentation

https://sequence.sh

Download

https://sequence.sh/download

Try SCL and Core

https://sequence.sh/playground

Package Releases

Can be downloaded from the Releases page.

NuGet Packages

Release nuget packages are available from nuget.org.