Export (0) Print
Expand All
Expand Minimize

Using the Start-Sleep Cmdlet

Pausing a Windows PowerShell Script

The Start-Sleep cmdlet (which is probably more useful in scripts than it is as a command-line command) enables you to pause Windows PowerShell activity for a specified period of time. For example, this command pauses Windows PowerShell for 10 seconds:



Start-Sleep -s 10

Sleep times can also be specified in milliseconds using the -m parameter. This command also pauses a script for 10 seconds (10,000 milliseconds):



Start-Sleep -m 10000

Start-Sleep Aliases
  • sleep

Related Links

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft