Editar

Compartilhar via


Get-StorageFaultDomain

Gets a Storage fault domain object.

Syntax

Get-StorageFaultDomain
   [-Type <StorageFaultDomainType>]
   [-PhysicalLocation <String>]
   [-CimSession <CimSession>]
   [<CommonParameters>]
Get-StorageFaultDomain
   [-Type <StorageFaultDomainType>]
   [-PhysicalLocation <String>]
   -StorageFaultDomain <CimInstance>
   [-CimSession <CimSession>]
   [<CommonParameters>]
Get-StorageFaultDomain
   [-Type <StorageFaultDomainType>]
   [-PhysicalLocation <String>]
   -StorageSubsystem <CimInstance>
   [-CimSession <CimSession>]
   [<CommonParameters>]

Description

The Get-StorageFaultDomain cmdlet gets a Storage fault domain object.

Examples

Example 1: Find a rack by its serial number

PS C:\>$Rack = Get-StorageFaultDomain -Type Rack | Where-Object {$_.SerialNumber -eq "xyzz"}

The first command gets the Rack domain type fault domains and uses the pipeline to pass them to Where-Object, which finds the Rack whose serial number is xyzz. The Rack is stored in the $Rack variable.

Parameters

-CimSession

Type:CimSession
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PhysicalLocation

Specifies the physical location of the hardware.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StorageFaultDomain

Specifies the objects in the hierarchy that are above or below the fault domain.

Type:CimInstance
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-StorageSubsystem

Specifies the storage subsystem object in which to retrieve storage jobs. Enter a StorageSubsystem CIM object. The StorageSubsystem CIM object is exposed by the Get-StorageSubSystem cmdlet.

Type:CimInstance
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Type

Specifies the Storage fault domain type:

  • PhysicalDisk
  • Enclosure
  • StorageScaleUnit
  • Rack
  • Chassis
Type:StorageFaultDomainType
Accepted values:PhysicalDisk, StorageEnclosure, StorageScaleUnit, StorageChassis, StorageRack, StorageSite
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

MSFT_PhysicalDisk, MSFT_StorageEnclosure, MSFT_StorageScaleUnit, MSFT_StorageRack, MSFT_StorageChassis

Notes

  • When used in Failover Cluster, cmdlets from the Storage module operate on cluster level (all servers in the cluster).