Skip to content

Instantly share code, notes, and snippets.

1) Install-time: create the task (runs as User X)

$TaskName = "xyOps-RunAsUser"
$User     = "DOMAIN\User"   # or "$env:COMPUTERNAME\User"
$Wrapper  = "C:\ProgramData\xyOps\runas\wrapper.ps1"

New-Item -Force -ItemType Directory (Split-Path $Wrapper) | Out-Null

@'
{
"name": "xyops-file-export",
"version": "1.2.0",
"private": true,
"description": "A versatile xyOps Action Plugin that exports job output data to multiple file formats including JSON, CSV, HTML, XML, Markdown, YAML, Plain Text, Excel, PDF, and HL7 healthcare formats.",
"author": "Tim Alderweireldt",
"homepage": "https://github.com/talder/xyOps-File-Export",
"license": "MIT",
"type": "module",
"bin": {