Use PowerShell scripts in Rewst
Execute PowerShell on endpoints using stored scripts
How it works
Return data from the script
$results = @{
hostname = $env:COMPUTERNAME
user = $env:USERNAME
}
$json = $results | ConvertTo-Json
Invoke-RestMethod -Method 'Post' -Uri $post_url -Body $json -ContentType "application/json"

Pass dynamic parameters with Jinja
Example: Pass a username
Use in Crates

Last updated
Was this helpful?

