Jump to content
Pulseway 9.14 🔥

Featured Replies

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

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