Hello,
I'm struggling to get a PowerShell script to execute successfully. I'm experiencing some very odd behavior.
The script uses Start-Process to execute a batch file and redirect its standard output to a file. When I execute the script in the PowerShell IDE, it works just fine.
When I execute it within Solarwinds via the Edit Script --> "Get script output", it does something very odd. Instead of executing the batch file as part of Start-Process, it ultimately dumps part of the batch file contents to file used for standard output followed by the line "more?".
I'm stumped. We are using SAM v6.1.0 and have PowerShell v5.0.x installed on the Solarwinds server.
Thanks,
Marshall