PowerShell Logo Small

Get-StorageEnclosure



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

Gets storage enclosures.

SYNTAX


Get-StorageEnclosure [-AsJob] [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-ThrottleLimit <Int32>]
[-UniqueId <String[]>] [<CommonParameters>]
Get-StorageEnclosure [-AsJob] [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-StorageNode <CimInstance>]
[-ThrottleLimit <Int32>] [<CommonParameters>]
Get-StorageEnclosure [[-FriendlyName] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>]
[-ThrottleLimit <Int32>] [<CommonParameters>]
Get-StorageEnclosure [-AsJob] [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-StorageSubSystem <CimInstance>]
[-ThrottleLimit <Int32>] [<CommonParameters>]
Get-StorageEnclosure [-AsJob] [-CimSession <CimSession[]>] [-HealthStatus <HealthStatus[]>] [-Manufacturer <String[]>] [-Model <String[]>] [-PhysicalDisk <CimInstance>]
[-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-StorageEnclosure cmdlet gets storage enclosures that are visible to your computer.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=289096
Get-StorageEnclosureVendorData
Disable-StorageEnclosureIdentification
Enable-StorageEnclosureIdentification
Get-PhysicalDisk
Get-StorageNode
Get-StorageSubSystem

REMARKS

<

Examples


Example 1: Get all enclosures

PS C:\>Get-StorageEnclosure



This command gets all the enclosures visible to your computer.




Example 2: Get an enclosure by using a friendly name

PS C:\>Get-StorageEnclosure -FriendlyName "E1"



This command gets the enclosure named E1.




Example 3: Get an enclosure by using an ID

PS C:\>Get-StorageEnclosure -UniqueId "{b2c21800-b833-11e2-9981-806e6f6e6963}"



This command gets the enclosure that has the specified UniqueId.




Example 4: Get unhealthy enclosures

PS C:\>Get-StorageEnclosure -HealthStatus "Unhealthy"



This command gets enclosures that have the health status of Unhealthy.




Example 5: Get enclosures from a manufacturer

PS C:\>Get-StorageEnclosure -Manufacturer "Fabrikam"



This command gets enclosures from a specific manufacturer.




Example 6: Get an enclosure that contains a specified disk

PS C:\>Get-PhysicalDisk -FriendlyName "PhysicalDisk35" | Get-StorageEnclosure



This command uses the Get-PhysicalDisk cmdlet to get the disk named PhysicalDisk35, and then passes that object to the current cmdlet by using the pipeline operator. The
current cmdlet gets the enclosure that contains the disk named PhysicalDisk35.




Example 7: Get enclosures attached to a storage node

PS C:\>Get-StorageNode -Name "Node14" | Get-StorageEnclosure



This command uses the Get-StorageNode cmdlet to get the storage node named Node14, and then passes that object to the current cmdlet by using the pipeline operator. The
current cmdlet gets enclosures attached to the node named Node14.




Example 8: Get enclosures on a subsystem

PS C:\>Get-StorageSubSystem -FriendlyName "Clustered storage spaces on main cluster" | Get-StorageEnclosure



This command uses the Get-StorageSubSystem cmdlet to get the storage subsystem that has the specified friendly name, and then passes that object to the current cmdlet by
using the pipeline operator. The current cmdlet gets enclosures on the specified subsystem.