powershell - How to enable verbose output invoke-command inside inlinescript -


workflow test-wf {    param()         inlinescript {             $verbosepreference = 'continue'             write-verbose "xxx"             invoke-command -cn "localhost" -scriptblock {$verbosepreference='continue'; write-verbose "yyy"}           }     } 

in example "xxx" written output, "yyy" not. how can cause verbose output inside remotely executed scriptblock inside workflow?

i solved running inlinescript -pscomputername parameter , providing machines there. behaves different in cases invoke command cn, it's enough me.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -