PowerShell Logo Small

Start-Sleep



This is the built-in help made by Microsoft for the command 'Start-Sleep', in PowerShell version 2 - as retrieved from Windows version 'Microsoft® Windows Vista™ Ultimate ' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Suspends the activity in a script or session for the specified period of time.

SYNTAX


Start-Sleep -Milliseconds <int> [<CommonParameters>]
Start-Sleep [-Seconds] <int> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Start-Sleep cmdlet suspends the activity in a script or session for the specified period of time. You can use it for many tasks, such as wait
ing for an operation to complete or pausing before repeating an operation.



<

RELATED LINKS


Online version: http://go.microsoft.com/fwlink/?LinkID=113407

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>Start-Sleep -s 15



Description
-----------
This command makes all commands in the session sleep for 15 seconds.








-------------------------- EXAMPLE 2 --------------------------

C:\PS>Start-Sleep -m 500



Description
-----------
This command makes all the commands in the session sleep for one-half of a second (500 milliseconds).