"/>

Powershell capture both output and verbose information in different variables

Is it posible to capture both output and verbose information into two different variables?

My requirement:

I am creating a gui with powershell and wpf where it has a richtextbox which display only verbose and errors.

For example if i execute get-dscconfiguration -verbose , verbose stream should go to richtextbox and output of that cmdlet should be asigned to a variable for further manuplation.

Please help me achive this. Thank you!

-vinay

Read Full News
Submit your Tech Updates