Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Edit VMware PowerShell SnapShot Script

Posted on 2012-04-09
4
Medium Priority
?
841 Views
Last Modified: 2012-04-23
I download the following powershell script to email reminders of Vmware snapshots in my enviroment. http://www.virtu-al.net/2009/06/22/powercli-snapreminder/ 

Instead of having a email sent to me for each snapshot, I would like to receive one email that that contains all of the same information that each individual email had..

how can I do this?
0
Comment
Question by:compdigit44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
coolsport00 earned 2000 total points
ID: 37827226
Are you wanting emailed on any VMs that contain snapshots? Is that right?

Alan has a different 'tool' called vCheck Daily. You can download it here: http://www.virtu-al.net/featured-scripts/vcheck/. I think this may serve you better. I did a "guest post" on Chris Colotti's site on how to 'separate' out the plugins for only what you want (see: http://www.chriscolotti.us/vmware/segregating-the-vcheck-daily-report-scripts/?utm_source=website&utm_campaign=wordtwit&utm_medium=web). So, basically, what you'll need to do is download the vCheck files. They come in a .zip file. Place them in a directory on your workstation. In the Plugins folder, all you need is the "00" Plugin, the "Disconnect from vCenter" Plugin and either Plugin "02", "45", "63", "64", or "65". You'll answer some questions at the initial run of the script, one of which is adding SMTP/email addy info. You can then set the script to be scheduled to run daily, or weekly, or whenever you like (see Alan's post on how to sched a script here: http://www.virtu-al.net/2009/07/10/running-a-powercli-scheduled-task/).

What you can do is play around with each of the plugins to see what the output is specifically that you want, or just add them all. If you don't need some of them, you can simply remove the ones you don't want from the Plugins folder.

Hope that helps.

Regards.
~coolsport00
0
 
LVL 20

Author Comment

by:compdigit44
ID: 37840483
Thanks for the tip. I was really hoping to use the same powershell script that I download in my orginal postingby modifiy it to just send one email that contained a list of all servers with snapshot older than X days. There has to be a way to do this
0
 
LVL 20

Author Comment

by:compdigit44
ID: 37862303
Are any of the experts able to help with this?
0

Featured Post

Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question