windows-powershell-docs
windows-powershell-docs copied to clipboard
-Wait doesn't accept number of seconds
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.
- ID: 94e25b5f-15c7-01dc-c43e-5131d93e9bc3
- Version Independent ID: a1926ffe-dc97-9dfa-b1d6-ffd8dca431d2
- Content: Suspend-ClusterNode (FailoverClusters)
- Content Source: docset/winserver2022-ps/failoverclusters/Suspend-ClusterNode.md
- Product: w10
- Technology: windows
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend