Chapter 5. Creating and Managing Snapshots

In this chapter, you will cover the following topics:

  • Creating a snapshot
  • Getting a list of snapshots in the environment
  • Manipulating the list of snapshots to get better information
  • Scoping and filtering a list of snapshots
  • Removing targeted snapshots
  • Finding lost or unknown snapshots
  • Creating a function to automatically remediate snapshots
  • Scheduling automatic snapshot remediation
  • Creating a snapshot management module


Snapshots are one of the best features in vSphere. Snapshots are the safety net built into the platform that allows you to easily revert to a previous known good state in the event that something happens in a VM. Some environments run regularly scheduled snapshots. Some administrators ...

Get PowerCLI Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.