How to Take a Snapshot of a VMware vSphere VM using PowerShell and PowerCLI

In this story, we will learn how to create (and remove) a snapshot of a VMware vSphere Virtual Machine (VM) using PowerShell and PowerCLI.

This script is useful to create a snapshot before we are going to make a change in a VM and remove it after we complete the change.

Requirements

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store