Powershell Windows Backup

%3CLINGO-SUB%20id%3D%22lingo-sub-1055804%22%20slang%3D%22en-US%22%3EPowershell%20Windows%20Backup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1055804%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3CBR%20%2F%3EI%20have%20an%20understanding%20problem%20with%20the%20Powershell%20commands%20regarding%20Windows%20Server%20Backup%20especially%20with%20'Get-WBBackupVolumeBrowsePath'.%3CBR%20%2F%3EThe%20MS%20page%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsserverbackup%2Fget-wbbackupvolumebrowsepath%3Fview%3Dwin10-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fwindowsserverbackup%2Fget-wbbackupvolumebrowsepath%3Fview%3Dwin10-ps%3C%2FA%3E%20doesn't%20help%20me.%3CBR%20%2F%3EMaybe%20someone%20can%20tell%20me%20what%20the%20correct%20syntax%20of%20the%20command%20looks%20like.%3C%2FP%3E%3CP%3EMany%20and%20best%20regards%20reredok%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1055804%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%20Reference%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1055853%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Windows%20Backup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1055853%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20may%20be%20helpful%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fwindows-powershell-docs%2Fblob%2Fmaster%2Fdocset%2Fwinserver2012r2-ps%2Fwindowserverbackup%2FStart-WBFileRecovery.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fwindows-powershell-docs%2Fblob%2Fmaster%2Fdocset%2Fwinserver2012r2-ps%2Fwindowserverbackup%2FStart-WBFileRecovery.md%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F482778%22%20target%3D%22_blank%22%3E%40reredok%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1057219%22%20slang%3D%22en-US%22%3ERe%3A%20Powershell%20Windows%20Backup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1057219%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F456782%22%20target%3D%22_blank%22%3E%40SarahFabius%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%20Sarah%2C%3CBR%20%2F%3Ebut%20with%20the%20github%20source%20I%20have%20the%20same%20problem%20as%20with%20the%20Microsoft%20documents.%3CBR%20%2F%3EMy%20problem%3A%3CBR%20%2F%3EGet-WBBackupVolumeBrowsePath%20-BackupSet%20%24Backup%20-VolumeInBackup%20%24Backup.Volume%5B0%5D%3CBR%20%2F%3EThe%20backup%20set%20must%20be%20determined%3A%3C%2FP%3E%3CP%3E%24Backups%20%3D%20Get-WBBackupSet%3CBR%20%2F%3E%24backups%3CBR%20%2F%3EVersionId%20%3A%2012%2F09%2F2019-08%3A44%3CBR%20%2F%3EBackupTime%20%3A%2009.12.2019%2009%3A44%3A58%3CBR%20%2F%3EBackupTarget%20%3A%20E%3A%3CBR%20%2F%3ERecoverableItems%20%3A%20Volumes%2C%20SystemState%2C%20Applications%2C%20Files%2C%20BareMetalRecovery%3CBR%20%2F%3EVolume%20%3A%20%7BEFI%20system%20partition%2C%20Recovery%2C%20Local%20disk%20(C%3A)%7D%3CBR%20%2F%3EApplication%20%3A%20%7BRegistry%7D%3CBR%20%2F%3EVssBackupOption%20%3A%20VssFullBackup%3CBR%20%2F%3ESnapshotId%20%3A%20ddf23c6b-c410-4177-8a35-13d1952e3884%3CBR%20%2F%3EBackupSetId%20%3A%20b57eae15-5347-47ab-b9e0-9502eb907e2e%3C%2FP%3E%3CP%3E%24Backups%5B0%5D.GetType()%3C%2FP%3E%3CP%3EIsPublic%20IsSerial%20Name%20BaseType%3CBR%20%2F%3E--------%20--------%20----%20--------%3CBR%20%2F%3ETrue%20False%20WBBackupSet%20System.Object%3CBR%20%2F%3ESo%20far%20so%20good.%3C%2FP%3E%3CP%3E%24Disks%20%3D%20Get-WBDisk%3C%2FP%3E%3CP%3E%24Disks%3C%2FP%3E%3CP%3EDiskName%20%3A%20Microsoft%20Virtual%20Disk%3CBR%20%2F%3EDiskNumber%20%3A%200%3CBR%20%2F%3EDiskId%20%3A%2093dddac6-63af-4769-97f0-22fc7fb379d2%3CBR%20%2F%3ETotalSpace%20%3A%2053687091200%3CBR%20%2F%3EFreeSpace%20%3A%2038328631808%3CBR%20%2F%3EVolumes%20%3A%20%7BEFI%20system%20partition%2C%20local%20disk%20(C%3A)%7D%3CBR%20%2F%3EContainsBackup%20%3A%20False%3CBR%20%2F%3EBackupVolumeId%20%3A%2000000000-0000-0000-0000-0000-00000000000000%3CBR%20%2F%3EProperties%20%3A%20ContainsOemPartition%2C%20ContainsCriticalVolume%3C%2FP%3E%3CP%3EDiskName%20%3A%20ST350041%208AS%20USB%20Device%3CBR%20%2F%3EDiskNumber%20%3A%201%3CBR%20%2F%3EDiskId%20%3A%206d685379-169c-4009-898f-f74c0cae2557%3CBR%20%2F%3ETotalSpace%20%3A%20500107862016%3CBR%20%2F%3EFreeSpace%20%3A%20478659640832%3CBR%20%2F%3EVolumes%20%3A%20%7BNew%20volume%20(E%3A)%7D%3CBR%20%2F%3EContainsBackup%20%3A%20False%3CBR%20%2F%3EBackupVolumeId%20%3A%2000000000-0000-0000-0000-0000-00000000000000%3CBR%20%2F%3EProperties%20%3A%20External%2C%20ValidTarget%3C%2FP%3E%3CP%3EDiskName%20%3A%20ST350041%208AS%20USB%20Device%3CBR%20%2F%3EDiskNumber%20%3A%202%3CBR%20%2F%3EDiskId%20%3A%203281cf20-ba33-468b-ae8f-6cd2be6e1946%3CBR%20%2F%3ETotalSpace%20%3A%20500107862016%3CBR%20%2F%3EFreeSpace%20%3A%20499972210176%3CBR%20%2F%3EVolumes%20%3A%20%7BNew%20volume%20(F%3A)%7D%3CBR%20%2F%3EContainsBackup%20%3A%20False%3CBR%20%2F%3EBackupVolumeId%20%3A%2000000000-0000-0000-0000-0000-00000000000000%3CBR%20%2F%3EProperties%20%3A%20External%2C%20ValidTarget%3C%2FP%3E%3CP%3E%24Disks%5B0%5D.GetType()%3C%2FP%3E%3CP%3EIsPublic%20IsSerial%20Name%20BaseType%3CBR%20%2F%3E--------%20--------%20----%20--------%3CBR%20%2F%3ETrue%20False%20WBDisk%20System.Object%3C%2FP%3E%3CP%3Eand%20the%20WBVolume%3A%3CBR%20%2F%3E%24WBVolume%20%3D%20Get-WBVolume%20-Disk%20%24Disks%5B0%5D%3CBR%20%2F%3E%24WBVolume%3C%2FP%3E%3CP%3EVolumeLabel%20%3A%3CBR%20%2F%3EMountPath%20%3A%3CBR%20%2F%3EMountPoint%20%3A%20%5C%5C%3F%5CVolume%7B0000000000-0000-0000-0000-00000000000000%7D%3CBR%20%2F%3EFileSystem%20%3A%20NONE%3CBR%20%2F%3EProperty%20%3A%20Critical%2C%20IsExtensibleFirmwareInterfaceSystemPartition%3CBR%20%2F%3EFreeSpace%20%3A%2072545280%3CBR%20%2F%3ETotalSpace%20%3A%20103809024%3C%2FP%3E%3CP%3EVolumeLabel%20%3A%3CBR%20%2F%3EMountPath%20%3A%20C%3A%3CBR%20%2F%3EMountPoint%20%3A%20%5C%5C%3F%5CVolume%7B971ab36f-e1e8-4c37-aa8a-c61e0f465392%7D%3CBR%20%2F%3EFileSystem%20%3A%20NTFS%3CBR%20%2F%3EProperty%20%3A%20Critical%2C%20ValidSource%3CBR%20%2F%3EFreeSpace%20%3A%2038253953024%3CBR%20%2F%3ETotalSpace%20%3A%2053041168384%3C%2FP%3E%3CP%3Eand%20here%20my%20problem%20(sorry%20is%20a%20german%20server)%3C%2FP%3E%3CP%3EPS%20C%3A%5CUsers%5CAdministrator%26gt%3B%20Get-WBBackupVolumeBrowsePath%20-BackupSet%20%24Backups%5B0%5D%20-VolumeInBackup%20%24WBVolume%5B0%5D%3CBR%20%2F%3EGet-WBBackupVolumeBrowsePath%20%3A%20The%20specified%20source%20volume%20was%20not%20found%20in%20the%20backup.%20Provision%20the%20-VolumeInBackup%20parameter%20from%20the%20list%20of%20volumes%20in%20the%20backup%20set.%3CBR%20%2F%3EIn%20line%3A1%20character%3A1%3CBR%20%2F%3E%2B%20Get-WBBackupVolumeBrowsePath%20-BackupSet%20%24Backups%5B0%5D%20-VolumeInBackup%20...%3C%2FP%3E%3CP%3E%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(%3A)%20%5BGet-WBBackupVolumeBrowsePath%5D%2C%20ArgumentException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20System.ArgumentException%2CMicrosoft.Windows.ServerBackup.Commands.GetWBBackupVolumeBrowsePath%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
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

2 Replies
Highlighted

@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