Hello People
I have some Virtuals Machines in my Vritual Machines Backup Policy with errors 156. Commonly this error happen when the Virtual Machine have a VCB Snapshot created on the Snapshot Manager.
I found a Power Shell command for delete the _VCB-BACKUP_ create automactly by FrameWork on the Virtuals Machines. Here the post:
-------------------------------------------------------------------------------------------------------------------------------------------
I managed to get the script
Solution
I managed to get the script for you. Actually i was wrong its not a bat script, its a POWER SHELL script.
so you have to download power shell, its a freeware. Install it and schedule it in windows scheduler
The content of the script goes like this. The file extension of the script file is .PS
add-pssnapin VMware.VimAutomation.Core;
Connect-VIServer –Server <esx host name> –Protocol https –User <domain/name> –Password <password>
$snap=get-snapshot -vm * -Name "_VCB-BACKUP_";
Remove-Snapshot -Snapshot $snap -confirm:$false;
We are running this script everyday morning at 8 AM when there are no VCB backups running.
Hope this helps
------------------------------------------------------------------------------------------------------------------------------------------------------
My Questions are:
This scrip is secure for run everyday using windows schedule?
The Script Just delete the VCB Backup Snapshot, not the entire Virtual Machine?
Affect the Virtual Machines Files?
Write over the Virtual Machine Storage Disk?
We never use PowerShell Before, that's the reason why we are asking for help. Any suggestion are welcome.
Thanks for your help.