gsudo icon indicating copy to clipboard operation
gsudo copied to clipboard

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

Open o-l-a-v opened this issue 1 year ago • 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

o-l-a-v avatar Aug 02 '24 11:08 o-l-a-v