PowerTip: Pause a PowerShell Script

PowerTip: Pause a PowerShell Script

  • Comments 1
  • Likes

Summary: Learn how to pause a Windows PowerShell script.

Hey, Scripting Guy! Question How can I pause a Windows PowerShell script?

Hey, Scripting Guy! Answer In Windows PowerShell 3.0 use the pause function, as shown here.

23:10 C:\> pause

Press Enter to continue...:

23:11 C:\>

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Or, Wait-Event might be what you're looking for :)