Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-ClusterResource

Remove-ClusterResource

microsoft.failoverclusters.powershell.dll

Synopsis

Removes a clustered resource from the failover cluster.

Syntax

Remove-ClusterResource [-Name] [-Cluster] [-Force] [-InputObject] [<CommonParameters>]

Detailed Description

The Remove-ClusterResource cmdlet removes a clustered resource from the failover cluster. Before removing a resource, be sure to review whether any other resource is dependent on that resource.

Parameters

-Cluster <String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

Runs the cmdlet without prompting for confirmation. By default the cmdlet will ask for confirmation from the user before proceeding.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-InputObject <PSObject>

Specifies the cluster resource to remove.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Name <StringCollection>

Specifies the name of the cluster resource to remove.

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.FailoverClusters.PowerShell.ClusterResource

Return Type

None

Notes

None

Examples

EXAMPLE 1

This example prompts the user for confirmation and then deletes the cluster named Cluster Disk 4 from the local cluster.

PS C:\>Remove-ClusterResource –Name "Cluster Disk 4"

EXAMPLE 2

This example deletes the cluster named Cluster Disk 5 from the local cluster without prompting for confirmation.

PS C:\>Remove-ClusterResource –Name "Cluster Disk 5" -Force

Online Version
Add-ClusterResource
Get-ClusterResource
Move-ClusterResource
Resume-ClusterResource
Start-ClusterResource
Stop-ClusterResource
Suspend-ClusterResource