Get-StorageEnclosureStorageNodeView
Gets the node view of a Storage enclosure.
Syntax
Get-StorageEnclosureStorageNodeView
[[-StorageNode] <CimInstance>]
[[-StorageEnclosure] <CimInstance>]
[[-CimSession] <CimSession>]
[<CommonParameters>]
Description
The Get-StorageEnclosureStorageNodeView cmdlet gets the node view of a Storage enclosure.
Examples
Example 1: Get enclosure details on a storage node
PS C:\>Get-StorageNode -Name "StorageNode21" | Get-StorageEnclosureStorageNodeView
This command gets all storage enclosure details connected to storage node named StorageNode21.
Example 2: Get storage enclosure details for all healthy enclosures
PS C:\>Get-StorageEnclosure -HealthStatus Healthy | Get-StorageEnclosureStorageNodeView
This command gets all Healthy storage enclosure details across all nodes in the cluster.
Example 3: Get storage enclosure details across all nodes
PS C:\>Get-StorageEnclosureStorageNodeView
This command gets all storage enclosure details across all nodes in the cluster.
Parameters
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Type: | CimSession |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageEnclosure
Specifies the Storage enclosure.
Type: | CimInstance |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageNode
Specifies the Storage node.
Type: | CimInstance |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
MSFT_StorageNodeToStorageEnclosure[]
This cmdlet returns an array of StorageNodeToStorageEnclosure objects.
Notes
- When used in Failover Cluster, cmdlets from the Storage module operate on cluster level (all servers in the cluster).