Forum Discussion

hh775624's avatar
hh775624
Copper Contributor
Dec 31, 2019
Solved

nice to have code only once in code scope

Hi, does someone see a chance to simplify the following script? I would like to place the code only once, not twice ($code01 & function code01) in code scope, the output of course should be the sam...
  • hh775624's avatar
    hh775624
    Jan 07, 2020

    JoP_SG 

    Hallo Joachim,

    1.  Invoke-Command -ScriptBlock $.....              ist genau die Lösung, nach der ich gesucht habe 🙂

     

    Danke

     

Resources