Get-WssDrive

Get-WssDrive

Gets an object that represents a drive.

Syntax

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

Detailed 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.

Parameters

-ID<Guid>

Specifies the GUID for a drive.

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.

  • Drive

Examples

Example 1: Get all drives

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

PS C:\> Get-WssDrive 

Set-WssDrive

Test-WssDrive