Getting PID of running Virtual Machines from a list of servers
#Powershell and plink from Putty #Getting PID of running Virtual Machines from a list of servers #You shall supply a password for root as a parameter to the script param($password = $(throw 'You shall...
View ArticleSnapshot Email Reminder
Fed up of chasing those people who constantly create snapshots and leave them hanging around for weeks or even months on end ? You no longer have to do the chasing, just use the following script to...
View ArticleFolder Name Mismatch
Isn’t it annoying when you are looking for a VM on your datastore and you cant find it because the folder name is not the same as the VM,use the below script and you will never have that problem...
View ArticleService status and email if down (as well as try to start it)
Here is a script I sorta came up with that checks common vmware services and then emails if any one of them aren't running (and trys to start them)(since our vsphere upgrade bombed a few times thanks...
View ArticleConfigure Switching for ESX host based on .CSV
A couple of weeks ago I was in need to configure several new ESX servers with multiple NICs, vSwitches, and VLANs. Since I'm not one to do the same thing over and over again I turned to scripting. To...
View ArticleNTP, PowerShell, It's about time.
There's no doubt that time is critically important in a computingenvironment. Given this sensitivity, and the recent recognition that wehad rogue hosts improperly configured, I decided to crank out a...
View ArticleJob-Rescan-ALL-HBA
This program will rescan all the HBA's in your vm enviroment, and instead of doing it one at a time, it creates a seperate job for each ESX host. Thus multithreading the rescan. For ESX 3.5 this is...
View ArticlevCheck (Daily Report) V3
Daily Report does what it says on the tin, it runs as a scheduled task before you get into the office to present you with key information about your infrastructure in a nice easily readable format....
View ArticleUsing PowerCLI to migrate VMs in a DRS enabled Cluster
We are running ESX 4.0 on HP DL380G6 servers. I created a cluster with three hosts and enabled HA and DRS. I can use the VSphere GUI to tell a host to enter Maintenance Mode, and since it is in a...
View Articlecreate a. bat file to connect to vCenter
Hello, I need to create one .bat to open a connection automatically to vCenter, I created a .bat PowerCLI calling and opens well but I did not connect, you copy the contents: C: \ Windows \ System32 \...
View ArticleNeed a PS script to delete/remove a VM
Hello, Is there any sample powershell script to perform something simple like removing a VW? Given the datacenter name and the vm name, is there such a script someplace I could use to perform that?...
View ArticlePowerCLI script to clone and customize Linux guest OS
http://honglus.blogspot.com/2010/10/vsphere-powercli-script-to-clone-and.html The script can clone Linux and assign ip addresses to multiple adapters. There are 2 scriptsdiscover-info.ps1 Discovery...
View ArticleNumber of vCPUs in a cluster
Inspired by Jason Boche’s article: http://www.boche.net/blog/index.php/2009/08/18/hidden-virtual-cpu-limit-restriction-in-esx-3-5/ and also William Lam’s Perl Script...
View ArticleGet-VDMData (takes a username and returns data about all the Virtual Desktops...
We get tickets from users that are having an issue with their Virtual Desktops and we only have their username to figure out which VM they are using. It can be a pain to find out which VMs they are...
View ArticleFind Orphaned VMDK's
(This script is for ESX 3.01, to find snapshots on 3.5 and above change the script en the names it searches for!!!!!) Hi, This script will find all orphaned vmdk's on all your virtual centers...
View Article