How do I schedule a VM snapshot in vSphere 5.5?

Is it possible to schedule a snapshot and also to schedule the removal of a snapshot from the vSphere client? If so, please provide the steps.
joukiejoukAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You can schedule a snapshot of a virtual machine through vCenter Server. (if you have vCenter Server).

otherwise it will need to be done via a PowerCLI command or script.

I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

use your scheduler to execute the following command, this takes the snapshot

New-Snapshot -VM Windows2012 -Memory -Quiesce -Name “Test Snapshot” -Description “Test Snapshot”

Open in new window


use your scheduler to execute the following command, this deletes (removes) the snapshot

$snapshot = Get-Snapshot -VM Windows2012 -Name “Test Snapshot” Remove-Snapshot -Snapshot $snapshot -RemoveChildren -Confirm:$false

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
joukiejoukAuthor Commented:
I was able to schedule a VM snapshot from the GUI. Is there a way to schedule a VM removal from the GUI? I'd prefer GUI rather than scripting.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
No, I'm afraid not. (not from the GUI).

You will need to script it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.