Issue: `Invoke-Gsudo` shows no output during execution
Opened this issue · 0 comments
o-l-a-v commented
Issue Description
gsudo $ScriptBlock
shows output during execution, Invoke-Gsudo -ScriptBlock $ScriptBlock -NoProfile
does not.
Steps to Reproduce
- Have some
$ScriptBlock
that uses$InformationAction = 'Continue'
withWrite-Information -MessageData 'Some info'
inside it. - Notice
gsudo $ScriptBlock
shows output during execution. Neat. - Notice
Invoke-Gsudo -ScriptBlock $ScriptBlock -NoProfile
shows no output during execution. Dang.- Not that my command finally finished, all the output was shown.
Context:
- Windows version: Windows 11, 23H2, en-US, 22631.3880
- gsudo version: 2.5.1