Edit

Share via


Get-DiskStorageNodeView

Gets the view of a disk from a storage node.

Syntax

Default (Default)

Get-DiskStorageNodeView
    [[-StorageNode] <CimInstance>]
    [[-Disk] <CimInstance>]
    [[-CimSession] <CimSession>]
    [<CommonParameters>]

Description

The Get-DiskStorageNodeView cmdlet gets the view of a disk from the perspective of the specified storage node.

Examples

Example 1: Get the node view for a disk on a storage node

PS C:\>Get-Disk -Number 11 | Get-DiskStorageNodeView
StorageNodeObjectId: {1}\\Contoso-C1\ROOT/Microsoft/Windows/Storage/Providers_v2\SPACES_StorageNode.ObjectId="{57e

eb746-cb28-4a7e-90bb-3d124ffcb0f7}:SN:Contoso-04"





DiskNumber        : 11

HealthStatus      : Healthy

OperationalStatus : Online

IsReadOnly        : False

IsOffline         : False

OfflineReason     :

StorageNode       : MSFT_StorageNode (ObjectId = "{1}\\Contoso-C1\ROOT/Microsoft/Window...)

Disk              : MSFT_Disk (ObjectId = "{1}\\Contoso-C1\ROOT/Microsoft/Window...)

This command gets the disk numbered 11 by using Get-Disk, and then passes it to the current cmdlet by using the pipeline operator. The current cmdlet gets the storage node on which disk 11 is present. The command displays some node specific properties.

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.

Parameter properties

Type:CimSession
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Disk

Specifies a disk object. To obtain a Disk object, use the Get-Disk cmdlet.

Parameter properties

Type:CimInstance
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-StorageNode

Specifies a disk object. To obtain a StorageNode object, use the Get-StorageNode cmdlet.

Parameter properties

Type:CimInstance
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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.

Notes

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