PowerShell script exchange
Post Reply
tictacz
Novice
Posts: 4
Liked: never
Joined: Nov 06, 2013 4:51 am
Full Name: Michael Harrison
Contact:

Script - Delete VM from Disk

Post by tictacz » 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.

veremin
Product Manager
Posts: 16884
Liked: 1430 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script - Delete VM from Disk

Post by veremin » 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.

Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests