-
- Novice
- Posts: 5
- Liked: never
- Joined: Apr 24, 2025 2:19 pm
- Contact:
export content as virtual disk via powershell
Hi,
I need to do the export content as virtual disk (in gui) via command line.
Does not matter, if powershell or cmd.
Is there any way to do this at the moment?
Or what could be a work around?
THX & Regards
Michael
I need to do the export content as virtual disk (in gui) via command line.
Does not matter, if powershell or cmd.
Is there any way to do this at the moment?
Or what could be a work around?
THX & Regards
Michael
-
- Veeam Software
- Posts: 2590
- Liked: 606 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: export content as virtual disk via powershell
Hi Michael, welcome to the forums.
I think Start-VBRRestoreVmFiles is what you're looking for, it lets you restore the individual configuration and virtual disk files from a backup. Check the example and give it a shot.
I think Start-VBRRestoreVmFiles is what you're looking for, it lets you restore the individual configuration and virtual disk files from a backup. Check the example and give it a shot.
David Domask | Product Management: Principal Analyst
-
- Novice
- Posts: 5
- Liked: never
- Joined: Apr 24, 2025 2:19 pm
- Contact:
Re: export content as virtual disk via powershell
Hi David,
sounds interesting.
But if I interpret the help information to Start-VBRRestoreVmFiles correctly, then it seems, that the files are restored in the original VM.
What I need, is: Extract the complete VMDK from the backup. Because I need an additional type of backup for desaster recovery scenarios, where I do not have any veeam.
Regards
Michael
sounds interesting.
But if I interpret the help information to Start-VBRRestoreVmFiles correctly, then it seems, that the files are restored in the original VM.
What I need, is: Extract the complete VMDK from the backup. Because I need an additional type of backup for desaster recovery scenarios, where I do not have any veeam.
Regards
Michael
-
- Veeam Software
- Posts: 2590
- Liked: 606 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: export content as virtual disk via powershell
Hi Michael,
That's exactly what the cmdlet does
You will pass a server added to Veeam with Get-VBRServer on the -Server parameter and a path on that server with the -Path parameter.
Example how to export to a Linux server "temp-svr" added as a managed server:
$backup = Get-VBRBackup -Name "Some Backup"
$rp = Get-VBRRestorePoint -Backup $backup | Sort -Property CreationTime -Descending | Select -First 1 #Get most recent restore point
$srv = Get-VBRServer -Name "temp-svr"
Start-VBRRestoreVMFiles –RestorePoint $rp –Server $srv –Path "/data/restored"
This would export all the VM files (vmdk, vmx, etc) to /data/restored on the server temp-svr. You can further isolate specific files as shown in the example on the page.
That's exactly what the cmdlet does

Example how to export to a Linux server "temp-svr" added as a managed server:
$backup = Get-VBRBackup -Name "Some Backup"
$rp = Get-VBRRestorePoint -Backup $backup | Sort -Property CreationTime -Descending | Select -First 1 #Get most recent restore point
$srv = Get-VBRServer -Name "temp-svr"
Start-VBRRestoreVMFiles –RestorePoint $rp –Server $srv –Path "/data/restored"
This would export all the VM files (vmdk, vmx, etc) to /data/restored on the server temp-svr. You can further isolate specific files as shown in the example on the page.
David Domask | Product Management: Principal Analyst
-
- Novice
- Posts: 5
- Liked: never
- Joined: Apr 24, 2025 2:19 pm
- Contact:
Re: export content as virtual disk via powershell
Hi David,
I am not sure, if I understand it the right way.
But I think, what you try to tell me, is:
This cmdlet restores not the files in the VM, but the VMware files like vmdk, wmx, etc.
And it restores them to a server (can be an ESX host, or can be the Windows Veeam Server) to the path /data/restored (linux) or \data\resotred (windows).
Correct?
THX & Regards
Michael
I am not sure, if I understand it the right way.
But I think, what you try to tell me, is:
This cmdlet restores not the files in the VM, but the VMware files like vmdk, wmx, etc.
And it restores them to a server (can be an ESX host, or can be the Windows Veeam Server) to the path /data/restored (linux) or \data\resotred (windows).
Correct?
THX & Regards
Michael
-
- Veeam Software
- Posts: 2590
- Liked: 606 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: export content as virtual disk via powershell
Correct
This cmdlet is specifically for the VM files, not GuestOS files. Anything relating to files/items inside the GuestOS will be referred to as GuestFiles typically in our cmdlets, easy way to tell which level the restore is working from. You can indeed target an ESXi host but you need to provide a proper path on the host.
Check the path property of objects returned from Find-VBRViEntity to get an idea of what a proper ESXi path looks like (For example, check a VM and a Folder returned from Find-VBRViEntity, you will see how it's stored on the host)

Check the path property of objects returned from Find-VBRViEntity to get an idea of what a proper ESXi path looks like (For example, check a VM and a Folder returned from Find-VBRViEntity, you will see how it's stored on the host)
David Domask | Product Management: Principal Analyst
-
- Novice
- Posts: 5
- Liked: never
- Joined: Apr 24, 2025 2:19 pm
- Contact:
Re: export content as virtual disk via powershell
OK, thank you. I will give it a try. I will answer later.
-
- Novice
- Posts: 5
- Liked: never
- Joined: Apr 24, 2025 2:19 pm
- Contact:
Re: export content as virtual disk via powershell
Thank you David!
This works exactly like I need it.
Regards
Michael
This works exactly like I need it.
Regards
Michael
Who is online
Users browsing this forum: No registered users and 11 guests