Powershell

Frends.PowerShell.RunCommand / 1.3.0

Summary

Runs one PowerShell command with parameters on the agent and returns its output, error stream and log separately. A session can be reused across Tasks so state carries between them.

Typical use — single administrative commands on Windows, where the separate error stream is what lets a Process tell a warning from a failure

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0
1.3.02026-09-29
Added
  • Option to execute commands with a custom PowerShell executable. Custom PowerShell executions cannot use a shared session and can set an execution policy.
Changed
  • Updated PowerShell to 7.4.20.
  • Updated target framework to .NET 8.0.
1.2.02024-10-09
Changed
  • Added explicit reference to Microsoft.Management.Infrastructure
1.1.02024-10-08
Changed
  • Updated PowerShell version to 7.2.23
1.0.22022-12-29
Fixed
  • Memory leak fix by unloading assembly context after Task execution.
1.0.12022-03-07
Changed
  • Targeting changed to only include .NET 6.0 (removed .NET Standard 2.0)
1.0.02022-03-04
Added
  • Initial implementation
An unhandled error has occurred. Reload 🗙