Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
---|
|