PowerShell Logo Small

Test-ClusterResourceFailure



This is the built-in help made by Microsoft for the command 'Test-ClusterResourceFailure', 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

Simulates a failure of a cluster resource.

SYNTAX


Test-ClusterResourceFailure [[-Name] <String>] [-Cluster <String>] [-InputObject <PSObject>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Test-ClusterResourceFailure cmdlet simulates a failure of a cluster resource.


Based on the failover and failback policies, when this cmdlet runs, the Cluster service moves the clustered role, or resource group, and attempts to bring the clustered
resource online. This cmdlet can be used to simulate what actions the Cluster service will take when a resource fails.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=321080
Move-ClusterGroup
Start-ClusterResource

REMARKS

<

Examples


Example 1

PS C:\>Test-ClusterResourceFailure –Name "Cluster Disk 4"
Name State Group ResourceType
---- ----- ----- ------------
Cluster Disk 4 Failed cluster12FS Physical Disk



This example simulates a failure in cluster resource named Cluster Disk 4.