PowerTip: Pause a PowerShell Script

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:\>

Comments (1)

  1. GC says:

    Or, Wait-Event might be what you're looking for 🙂