Jump to content

Recommended Posts

Posted

Does anyone have an update script for making and removing snapshots in VMware?

I would like to use it together with Windows update scripts to search and install updates.

  • 1 month later...
  • Administrators
Posted

Hi there,

You could install PowerCLI on the machine and then use it from Pulseway to create snapshots. All you need to do is create a snapshot before running updates:

https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.powercli.cmdletref.doc%2FNew-Snapshot.html

I would keep the snapshot until you find updates again and at that point you delete the old snapshot and create a new one.

Get-VM | Get-Snapshot | Remove Snapshot

Make sure you add a filter to the first Get-VM call and maybe add a filter on the Get-Snapshot too by name.

-Paul

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...