Write-Progress with Write-Output

Welcome Forums General PowerShell Q&A Write-Progress with Write-Output

  • This topic has 1 reply, 2 voices, and was last updated 9 months ago by
    Moderator
    .
Viewing 1 reply thread
  • Author
    Posts
    • #195053
      Participant
      Topics: 2
      Replies: 0
      Points: 25
      Rank: Member

      Hi,

      I’m using Write-Progress along with Write-Output. The latter is causing Write-Progress to flicker/blink.

      If I take out the Write-Output line the flickering/blinking goes away.

      Does Write-* cause a redraw or something? Can that be stopped?

      Thanks

    • #195083
      Moderator
      Topics: 5
      Replies: 237
      Points: 1,321
      Helping Hand
      Rank: Community Hero

      Please wrap your code with pre tags to give it a good format. For now, I have done it for you.

      Coming to your query, where is the $logfile coming from? And for me, the script is executed as expected. Maybe you are noticing the progress bar flickering because the Test-Connection count is less, increase the count to see the progress bar a bit.

      Thank you.

       

Viewing 1 reply thread
  • The topic ‘Write-Progress with Write-Output’ is closed to new replies.