Wiki ยท 1.1
Configure LocalScripting for schedules, User Actions or IDU; exit codes, JSON and webhook completion.
LocalScripting executes local PowerShell scripts through the Qixium Agent. Use a configured schedule, User Action or IDU automation to run an existing administrative action or export as part of the wider workflow.
C:\Qixium\configs\LocalScripting.ScriptFolder to the managed script directory, escaping backslashes in JSON..ps1 file there, reload again and check status.The Scheduler action uses application LocalScripting, action Run Script, the configured connector and script. User Actions can attach execution to supported record triggers. IDU can include the action in employee automation. Define permitted inputs, repeat-run handling and local permissions.
The supplementary IDU reference specifies exit code 0 for success and non-zero for failure. Handle cmdlet errors explicitly and verify outcomes before allowing dependent work.
When Result Variables are enabled, stdout must contain only the agreed JSON object. Extra output from Write-Host, helper cmdlets or transcripts can invalidate the result. Keep operational logging separate and free of secrets. This illustrative example does not change AD or databases and has not been run on your Agent.
$ErrorActionPreference = 'Stop'
try {
# Example without AD or database changes.
$result = [pscustomobject]@{
success = $true
checkedAtUtc = (Get-Date).ToUniversalTime().ToString('o')
}
$result | ConvertTo-Json -Compress | Write-Output
exit 0
}
catch {
[pscustomobject]@{ success = $false; errorCode = 'SCRIPT_FAILED' } |
ConvertTo-Json -Compress | Write-Output
exit 1
}
The supplementary reference describes Output Capture Mode: Webhook for certain complex scripts and sessions, reporting output, success and exitCode with the current request context. That IDU reference is archived in Confluence: confirm the callback and supported mode for your installed version. Do not copy another instance's URL or hardcode credentials.
A controlled script exports required AD fields. CSV Reader reads the export and Data Link maps rows by a stable key. The configured next step can update agreed service records. Check export failure, empty files and missing keys before downstream writes.
Explore PowerShell integrations
Sources reviewed on 6 November 2026. Screen names and capabilities depend on your installed version and configuration.