Select-WssMountVhd

Selects a VHD from a backup set to mount for a file restore operation.

Syntax

Select-WssMountVhd
      [-BackupSet] <BackupSet>
      [-Vhd] <MountVhdData>
      [<CommonParameters>]

Description

The Select-WssMountVhd cmdlet selects a virtual hard drive (VHD) from a backup set to mount for a file restore operation. Each VHD represents a backup volume in the set.

Examples

Example 1: Select a VHD for a restore operation

PS C:\> Select-WssMountVhd -BackupSet $ContosoBU122412 -Vhd $ContosoVHD122412

This command selects the backup set that is stored in the variable named $ContosoBU122412 from the VHD that is stored in the variable named $ContosoVHD122412.

Parameters

-BackupSet

Specifies the backup set from which to restore files.

Type:BackupSet
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Vhd

Specifies the VHD to mount.

Type:MountVhdData
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.MountVhdData

This cmdlet generates mount VHD data.