gerardog/gsudo

Issue: `Invoke-Gsudo` shows no output during execution

Opened this issue · 0 comments

Issue Description

gsudo $ScriptBlock shows output during execution, Invoke-Gsudo -ScriptBlock $ScriptBlock -NoProfile does not.

Steps to Reproduce

  1. Have some $ScriptBlock that uses $InformationAction = 'Continue' with Write-Information -MessageData 'Some info' inside it.
  2. Notice gsudo $ScriptBlock shows output during execution. Neat.
  3. 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