Script - Delete VM from Disk

PowerShell script exchange

Script - Delete VM from Disk

Veeam Logoby tictacz » Wed Nov 06, 2013 5:07 am

Hi Guy & Gals,

I was wondering if anyone can point me in the right direction to resolve my issue.

I am trying to utilize the backup copy function in V7 to copy the last full VBK file created by my daily incrementals to my rotated offsite media.

I have got this working however due to the Backup Copy Job retention policy being two days I have ran into some issues.

To cut a long story short this is working perfectly except that every two days I have to go and delete the vm's from disk for my backup copy jobs

I would like to create a script that deletes the VM's from Disk for the backup copy job.

I have tried the following in powershell to no avail.

Get-VBRBackup - Name "----" :Remove-VBRBackup -FromDisk

Any guidance would be appreciated.
Posts: 4
Liked: never
Joined: Wed Nov 06, 2013 4:51 am
Full Name: Michael Harrison

Re: Script - Delete VM from Disk

Veeam Logoby v.Eremin » Wed Nov 06, 2013 8:12 am 1 person likes this post

Hi, Michael,

Actually, you don’t have to write anything, since there is already a script that seems to be exactly what you’re after; so, kindly take a look.

Veeam Software
Posts: 14019
Liked: 1051 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Return to PowerShell

Who is online

Users browsing this forum: sumwu and 1 guest