Now that you understand what’s snapshot and when to use it…what... you don’t know ?!?! check my previous post about it…
So, you are probably wondering what VM on your environment has snapshots, how long they have been there, but if you are like me, that have hundreds of guests on your environment, using snapshot manager is not the best tool for the job.
VMware provides a Windows PowerShell interface to vSphere functionality. The products below offer PowerShell cmdlets for administering vSphere components. With PowerCLI you can create script to help you with several tasks on your environment.
First you need to install PowerCLI, download it here. (I’m assuming you already have PowerShell on your workstation.
Here’s the steps to get a list of VMs with snapshot
- launch vSphere PowerCLI
- connect on your VC. Run: Connect-VIServer –Server “your_VC”
- run: Get-VM | Sort Name | Get-Snapshot | Select VM,Name,Description,Created
there will go:
If you want to export it to CSV file just run:
Get-VM | Sort Name | Get-Snapshot | Select VM,Name,Description,Created | Export-CSV "Your_File_outup"
It’s time for the cleanup …
Thursday, October 14, 2010
Who am I

- Eduardo Meirelles da Rocha
- I’m an IT specialist with over 15 years of experience, working from IT infrastructure to management products, troubleshooting and project management skills from medium to large environments. Nowadays I'm working for VMware as a Consulting Architect, helping customers to embrace the Cloud Era and make them successfully on their journey. Despite the fact I'm a VMware employee these postings reflect my own opinion and do not represents VMware's position, strategies or opinions. Reach me at @dumeirell
Most Viewed Posts
-
vRealize Automation 7.1 brings several new features and functionalities, while the community is covering the fanciest...
-
For the past few days my vRealize Automation Cloud has been broken, mainly because there was an error with my Cloud Proxy preventing it to...
-
I have to admit since I started playing with PowerCLI I’ve been enjoying it more and more. A few weeks ago I needed to delete 50 VMs from t...
-
If you just install VMware Converter and start running it with it’s default configuration, I’m sure you will be successfully. But, the...
-
Have you tried to set up or change a root's password for an ESXi host and got the following error message: Weak...
-
Day two of a VMware NSX implementation and I was surrounded by angry network guys asking me: “ What have you done ? ” As scare as...
-
During the past few weeks, my NSX partner in crime, the Sr. Consultant Anderson Duboc and I have been working on a NSX Reference Poster...
-
Do you know the LUNs on your environment might have different versions ? Yeah, that’s true!! To check tha LUN version, on the configuratio...
-
I've been playing with Tanzu Kubernetes Cluster (TKC) on vSphere with Tanzu since vSphere 7.0 GA, recently, to be honest, have bee...
-
While working with one of my customers to deploy a new automation platform ( vRealize Automation ), which will provide and manage multi-clo...
No comments:
Post a Comment