PowerShell Logo Small

Start-Sleep



This is the built-in help made by Microsoft for the command 'Start-Sleep', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' 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 [-Seconds] <Int32> [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]]
[<CommonParameters>]
Start-Sleep [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]] -Milliseconds <Int32>
[<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 waiting for an operation to
complete or pausing before repeating an operation.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=294018

REMARKS

<

Examples


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

PS C:\>Start-Sleep -s 15



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










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

PS C:\>Start-Sleep -m 500



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