-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
resolution-answeredStatus - closed by existing documentationStatus - closed by existing documentation
Description
Type of issue
Code doesn't work
Feedback
Powershell ($PSVersion) 5.1.22621.4111 on Windows 11 Pro 23H2. The -Duration
parameter is not recognised.
Consider Example 3 in the documentation:
Start-Sleep -Duration (New-TimeSpan -Seconds 30)
Start-Sleep : A parameter cannot be found that matches parameter name 'Duration'.
At line:1 char:13
+ Start-Sleep -Duration (New-TimeSpan -Seconds 30)
+ ~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Start-Sleep], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.StartSleepCommand
Page URL
Content source URL
Author
Document Id
b7e7a855-2cef-6e01-a6c4-919ce8cb575d
Metadata
Metadata
Assignees
Labels
resolution-answeredStatus - closed by existing documentationStatus - closed by existing documentation