Get-WssDisk

Get-WssDisk

Gets an object that represents a disk.

Syntax

Parameter Set: Default
Get-WssDisk [-ID <Guid> ] [ <CommonParameters>]

Detailed Description

The Get-WssDisk cmdlet gets an object that represents a disk. Specify a GUID for a specific disk. If you do not specify a GUID, the cmdlet gets Disk objects for all the drives for the current server. You can use the Initialize-WssDisk cmdlet to initialize a disk for storage.

Parameters

-ID<Guid>

Specifies the GUID for a disk.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Disk

Examples

Example 1: Get a Disk object

This command gets the Disk object that has the ID 26a21bda-a627-11d7-9931-806e6f6e6963.

PS C:\> Get-WssDisk -ID "26a21bda-a627-11d7-9931-806e6f6e6963"

Initialize-WssDisk