Select-WssMountVhd
Select-WssMountVhd
Selects a VHD from a backup set to mount for a file restore operation.
Syntax
Parameter Set: Default
Select-WssMountVhd [-BackupSet] <BackupSet> [-Vhd] <MountVhdData> [ <CommonParameters>]
Detailed Description
The Select-WssMoundVhd 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.
Parameters
-BackupSet<BackupSet>
Specifies the backup set from which to restore files.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Vhd<MountVhdData>
Specifies the VHD to mount.
Aliases |
none |
Required? |
true |
Position? |
2 |
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: Select a VHD for a restore operation
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.
PS C:\> Select-WssMountVhd -BackupSet $ContosoBU122412 -Vhd $ContosoVHD122412