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

Script - Delete VM from Disk

Post by tictacz »

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.

Product Manager
Posts: 17745
Liked: 1615 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Script - Delete VM from Disk

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


Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests