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
The Get-StorageFaultDomain cmdlet gets a Storage fault ___domain object.
Parameter properties
Type:
CimSession
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-PhysicalLocation
Specifies the physical ___location of the hardware.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-StorageFaultDomain
Specifies the objects in the hierarchy that are above or below the fault ___domain.
Parameter properties
Type:
CimInstance
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
ByStorageFaultDomain
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
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.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
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).