Logging to console or variable with powershell and .net assembly

Advertisement

perry99
Guest

Logging to console or variable with powershell and .net assembly

Hello,

using powershell and .net assembly, is it possible to write the SessionLog to console or a variable without writing it to a file first?

I could write the log with something like:
$session.SessionLogPath = ("c:\Sessionlog.log")
and then display it on console. Is there a way to write the output directly to console?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum