Get-WssDrive

Gets an object that represents a drive.

Syntax

Get-WssDrive
   [-ID <Guid>]
   [<CommonParameters>]

Description

The Get-WssDrive cmdlet gets an object that represents a drive. Specify a GUID for a specific drive. If you do not specify a GUID, the cmdlet gets Drive objects for all the drives for the current server.

Examples

Example 1: Get all drives

PS C:\> Get-WssDrive

This command gets Drive objects for all the drives for the current server.

Parameters

-ID

Specifies the GUID for a drive.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.Storage.Drive

This cmdlet generates the server Drive object.