Search found 4 matches

by jbake2019
Mon Jun 24, 2019 9:30 am
Forum: PowerShell
Topic: PowerShell Packaged to exe; Trouble with Write-Output
Replies: 7
Views: 5892

Re: PowerShell Packaged to exe; Trouble with Write-Output

Figured it out.

Was using {cmd/c start ps1.exe} which was spawning a new console and not preserving the output.

Now I used {cmd /c call ps1.exe} and it returned just fine.

So CALL vs START... (facepalm)

Thanks anyways for the assist.
by jbake2019
Mon Jun 24, 2019 9:01 am
Forum: PowerShell
Topic: PowerShell Packaged to exe; Trouble with Write-Output
Replies: 7
Views: 5892

Re: PowerShell Packaged to exe; Trouble with Write-Output

Maybe you missed it in my op, but I’m delivering with a software delivery program. I am able to get output from write-output and write-host if I send it as a ps1, but if sending an exec of it I get nothing back. My test script is a simple one just to try to get output back to the software delivery p...
by jbake2019
Mon Jun 24, 2019 7:20 am
Forum: PowerShell
Topic: PowerShell Packaged to exe; Trouble with Write-Output
Replies: 7
Views: 5892

Re: PowerShell Packaged to exe; Trouble with Write-Output

Tried v5 command line, still no output though.
by jbake2019
Fri Jun 21, 2019 1:06 pm
Forum: PowerShell
Topic: PowerShell Packaged to exe; Trouble with Write-Output
Replies: 7
Views: 5892

PowerShell Packaged to exe; Trouble with Write-Output

Hello all, I'm delivering a packaged ps script (exe) to remote machines (software delivery application executing locally). I can't seem to get the basic output to return to my delivery program console though. It's a simple script in the package for this test: Write-Host "Write-Host" Write-...