locked
start process and treat output, how? RRS feed

  • Question

  • isn't it a simple task

    in powershell script to start a process

    and pipe the StandardOutput to a variable.

    How please?

    Erhy

    Sunday, August 20, 2017 3:31 PM

Answers

  • Easy:

    Command with standard output:

    ipconfig /all

    Catch output in variable:

    $myvar = ipconfig /all

    Try it.


    \_(ツ)_/

    • Marked as answer by Erhy Sunday, August 20, 2017 4:03 PM
    Sunday, August 20, 2017 3:45 PM