Powershell Windows Backup

New Contributor

Hello,
I have an understanding problem with the Powershell commands regarding Windows Server Backup especially with 'Get-WBBackupVolumeBrowsePath'.
The MS page https://docs.microsoft.com/en-us/powershell/module/windowsserverbackup/get-wbbackupvolumebrowsepath?... doesn't help me.
Maybe someone can tell me what the correct syntax of the command looks like.

Many and best regards reredok

3 Replies

@SarahFabius 

Thank you, Sarah,
but with the github source I have the same problem as with the Microsoft documents.
My problem:
Get-WBBackupVolumeBrowsePath -BackupSet $Backup -VolumeInBackup $Backup.Volume[0]
The backup set must be determined:

$Backups = Get-WBBackupSet
$backups
VersionId : 12/09/2019-08:44
BackupTime : 09.12.2019 09:44:58
BackupTarget : E:
RecoverableItems : Volumes, SystemState, Applications, Files, BareMetalRecovery
Volume : {EFI system partition, Recovery, Local disk (C:)}
Application : {Registry}
VssBackupOption : VssFullBackup
SnapshotId : ddf23c6b-c410-4177-8a35-13d1952e3884
BackupSetId : b57eae15-5347-47ab-b9e0-9502eb907e2e

$Backups[0].GetType()

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False WBBackupSet System.Object
So far so good.

$Disks = Get-WBDisk

$Disks

DiskName : Microsoft Virtual Disk
DiskNumber : 0
DiskId : 93dddac6-63af-4769-97f0-22fc7fb379d2
TotalSpace : 53687091200
FreeSpace : 38328631808
Volumes : {EFI system partition, local disk (C:)}
ContainsBackup : False
BackupVolumeId : 00000000-0000-0000-0000-0000-00000000000000
Properties : ContainsOemPartition, ContainsCriticalVolume

DiskName : ST350041 8AS USB Device
DiskNumber : 1
DiskId : 6d685379-169c-4009-898f-f74c0cae2557
TotalSpace : 500107862016
FreeSpace : 478659640832
Volumes : {New volume (E:)}
ContainsBackup : False
BackupVolumeId : 00000000-0000-0000-0000-0000-00000000000000
Properties : External, ValidTarget

DiskName : ST350041 8AS USB Device
DiskNumber : 2
DiskId : 3281cf20-ba33-468b-ae8f-6cd2be6e1946
TotalSpace : 500107862016
FreeSpace : 499972210176
Volumes : {New volume (F:)}
ContainsBackup : False
BackupVolumeId : 00000000-0000-0000-0000-0000-00000000000000
Properties : External, ValidTarget

$Disks[0].GetType()

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False WBDisk System.Object

and the WBVolume:
$WBVolume = Get-WBVolume -Disk $Disks[0]
$WBVolume

VolumeLabel :
MountPath :
MountPoint : \\?\Volume{0000000000-0000-0000-0000-00000000000000}
FileSystem : NONE
Property : Critical, IsExtensibleFirmwareInterfaceSystemPartition
FreeSpace : 72545280
TotalSpace : 103809024

VolumeLabel :
MountPath : C:
MountPoint : \\?\Volume{971ab36f-e1e8-4c37-aa8a-c61e0f465392}
FileSystem : NTFS
Property : Critical, ValidSource
FreeSpace : 38253953024
TotalSpace : 53041168384

and here my problem (sorry is a german server)

PS C:\Users\Administrator> Get-WBBackupVolumeBrowsePath -BackupSet $Backups[0] -VolumeInBackup $WBVolume[0]
Get-WBBackupVolumeBrowsePath : The specified source volume was not found in the backup. Provision the -VolumeInBackup parameter from the list of volumes in the backup set.
In line:1 character:1
+ Get-WBBackupVolumeBrowsePath -BackupSet $Backups[0] -VolumeInBackup ...

+ CategoryInfo : NotSpecified: (:) [Get-WBBackupVolumeBrowsePath], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.Windows.ServerBackup.Commands.GetWBBackupVolumeBrowsePath

 

I also have this difficulty mounting the volume to restore a file.