How to access stderr output?
Closed this issue · 1 comments
joeskeen commented
I'm trying to run a command using Invoke-SSHCommand. If I SSH in manually and run the command, it succeeds, or if it fails, it outputs some message about why it failed. If I run it using Invoke-SSHCommand, no matter whether it succeeds or fails, I get an empty Output property. Is there a way to have Invoke-SSHCommand capture both stdout and stderr and have a way to access ErrorOutput?
joeskeen commented
NVM, after examining the source I found the -ShowStandardOutputStream and -ShowErrorOutputStream parameters, not sure why I didn't see them before.