PowerShell.ws >_

The unOfficial PowerShell Website!

PowerShell Command Reference:
A short synopsis of Start-Sleep: Suspends the activity in a script or session for the specified period of time.

A Description of Start-Sleep:
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 co mplete or pausing before repeating an operation.

The Possible Inputs for Start-Sleep:
System.Int32 You can pipe the number of seconds to Start-Sleep.

The Correct Syntax for Start-Sleep:
Start-Sleep -Milliseconds [] Start-Sleep [-Seconds] []

The Return Values for Start-Sleep:
None This cmdlet does not return any output.

Usage Examples for Start-Sleep:

-------------------------- 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).








Possible Parameters for Start-Sleep:


-Milliseconds

Specifies how long the resource sleeps in milliseconds. The parameter can be abbreviated as "-m".



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Seconds

Specifies how long the resource sleeps in seconds. You can omit the parameter name ("Seconds"), or you can abbreviate it as "-s".



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false





This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer and OutVariable. For more information, type,

"get-help about_commonparameters".