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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -