Forcing all output to Out-Host

This topic contains 0 replies, has 1 voice, and was last updated by  Forums Archives 6 years, 5 months ago.

  • Author
  • #5737

    by memeric at 2013-03-29 12:25:08

    Hi. I just started logging my PowerShell sessions using "Start-Transcript"; however, I noticed that when I run a non-native command (like dnscmd.exe) in the shell, the output is not displayed. Piping the command to "Out-Host" did resolve the issue...but I don't want to have to do this every time I type a command. Is there a way in PS to force all output to host so that all output gets logged correctly?
    Thanks in advance...

    by DonJ at 2013-03-29 14:37:26

    Not using the native console host application, no. You'd have to build your own host.

You must be logged in to reply to this topic.