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
Post a Comment