VMware

Anything VMware Related

This script identifies and exports RDM disks within the vCenter environment. Please remember to input the $vcenter variable and ensure the export path is valid. ######################################## ## Export RDM from vCenter ## ## Created By: Ben Prudence ## ## Created: 19/10/2015 ## ######################################## ## Variables $vcenter = xxxxvcenter01 ## Add VMware Snapin add-pssnapin VMware.VimAutomation.Core ## […]

Read More

This is a script to show the uptime of a VM in the Virtual estate. I have put a few different variations of this Script to meet the needs I had. The script below has is the original script I found on the following site: http://vmware-scripts.blogspot.co.uk/2012/08/script-to-get-uptime-of-each-vm-in.html $LastBootProp = @{   Name = ‘LastBootTime’     Expression […]

Read More

This one line script is the first thing I do when joining a company to give me an overview of what is out there in the vCenter estate. It shows a VM against its Host, Cluster and Datacenter, we all know these can change with DRS and sDRS but as I say its a great […]

Read More

As the command says this command shows you all the information you would like to know about Snapshots! Very useful for putting this command into a scheduled task and receiving an email form it reporting on your Snapshots. Starting from the top, the command can not be run on its own. It needs information to […]

Read More

Want to use VMware PowerCLI to get some information or perform a script? First things first, you have to connect the application to something. Now the choice is up to you, a Host or a vCenter server? I would always go with the vCenter server as you can specify specific hosts but its up to […]

Read More