< Back

Get-DiskStorageNodeView

Wed Jan 30, 2019 6:02 pm

NAME Get-DiskStorageNodeView



SYNOPSIS

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.





PARAMETERS

-CimSession [<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.



Required? false

Position? 3

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Disk [<CimInstance>]

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



Required? false

Position? 2

Default value none

Accept pipeline input? true(ByValue)

Accept wildcard characters? false



-StorageNode [<CimInstance>]

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



Required? false

Position? 1

Default value none

Accept pipeline input? true(ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









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.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=813435

Get-DiskStorageNodeView

Get-StorageNode