Get-WssMountVhd

Get-WssMountVhd

Gets a collection of VHDs from a backup set.

Syntax

Parameter Set: Default
Get-WssMountVhd [-BackupSet] <BackupSet> [ <CommonParameters>]

Detailed Description

The Get-WssMountVhd cmdlet gets a collection of virtual hard drives (VHDs) from a backup set. Each VHD represents a backup volume in the set.

Parameters

-BackupSet<BackupSet>

Specifies the backup set from which to get the collection of VHDs.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

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.

Examples

Example 1: Get VHDs from a backup set

This example gets the VHD collection from the backup set that is stored in the variable named $ContosoBUSet25 and stores the collection in the variable named $ContosoBUSet25VHD.

PS C:\> $ContosoBUSet25VHD = Get-WssMountVhd -BackupSet $ContosoBUSet25

Select-WssMountVhd