Editar

Compartir a través de


Get-DiskStorageNodeView

Gets the view of a disk from a storage node.

Syntax

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.

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

-Disk

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

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

-StorageNode

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

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

Notes

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