windows-powershell-docs icon indicating copy to clipboard operation
windows-powershell-docs copied to clipboard

-Wait doesn't accept number of seconds

Open supervos opened this issue 2 years ago • 0 comments

The documentation mentions that the -Wait accepts a number of seconds but it's type is a SwitchParameter. Even executing the given example -Wait 0 gives an error:

> Suspend-ClusterNode -Name "failover-cluster-node1" -Drain -Wait 0
Suspend-ClusterNode : Failed to retrieve the node '0' from the cluster 'failover-cluster-test'.
    An error occurred opening node '0'.
    The cluster node was not found

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

supervos avatar Oct 05 '22 09:10 supervos