SCRIPT LIST

This page will give you a direct link to all scripts and useful one-liners I have written.

Getting Started

 

Name Brief Description Link
Icomasoft PowerCLI Reference Card PowerCLI reference card Click Here
VI Toolkit Quick Reference Guide Quick reference guide of the VI Toolkit cmdlets Click Here
PowerShell Get-Member fun An example of using Get-Member Click Here
Getting Started with the VI Toolkit A guide on how to get started Click Here

Virtual Machines

 

Name Brief Description Link
More HAL Information List VM/Num vCPU/HAL/OS Version/Service Pack Click Here
last 10 VMs created and removed List all VMs created or deleted over a period of time or last x number Click Here
Local stored VMs List all VM’s located on local storage Click Here
More one-Liner power Set the CPU and Memory limits on multiple VMs
Find a VM with a specific Mac Address
Click Here
Stats One-Liner List each VM and the average CPU/Memory over x amount of days Click Here
More One Liners List number of VM’s per resource pool and
list Host, Cluster, Number of VMs and number of templates
Click Here
Folder Name Mismatch Lists all VM’s which are stored in a folder not the same as their name Click Here
How many VMs ? Lists how many VM’s were on each host Click Here
Storage VMotion – The PowerCLI way Shows how to VMotion and SVMotion VMs using PowerCLI Click Here
PowerCLI on steroids – Custom attributes Exporting and importing Custom attributes Click Here
One-Liner: VM Guest Disk Sizes List all VM’s and their disk sizes Click Here
One-Liner: Correct HAL ? List the number of vCPU’s assigned to a VM and the type of HAL installed in the O/S Click Here
Setting MMU for your VMs Set MMU for multiple VMs Click Here
Reservations / Limits and Shares Export your Reservations limits and Shares Click Here
List VM’s with RDM List all VMs which have an RDM Click Here
Who deleted my VM ? A script to find the culprit ! Reading the VC database Click Here
Checking CPU Affinity A Script that lists each VM and the CPU they are tied to. Click Here

ESX Hosts

 

Name Brief Description Link
Checking Host Network Information List all ESX Host Service console and VMotion network information Click Here
Number of vCPUs in a cluster detail the number of vCPU’s on a host and in a cluster Click Here
Reading host log files How to read a hosts log files and use these in your scripts Click Here
Processor Types List each of your hosts and a detailed CPU type Click Here
Do you have the time ? List each hosts NTP settings and if the service is running Click Here
Host Hardware one-liner Details the hosts hardware details Click Here
vProfiles A Script to automatically configure your hosts from an existing host Click Here
More One Liners List number of VM’s per resource pool and
list Host, Cluster, Number of VMs and number of templates
Click Here
Provision ESX Hosts through PowerShell A Link to a script by SCampbell Click Here
Getting VMware Host Physical Nic Speeds A script to list all Nics and their speeds Click Here
Rescan all hosts for new storage Rescan all hosts for new Storage Click Here

Licensing

 

Name Brief Description Link
License Server Scripts How to list the licensed features on each host and also monitor the license service Click Here

Datastores

 

Name Brief Description Link
How Many VMs on your Datastores ? Lists the number of VMs on each Datastore Click Here
Mass provision datastore’s add multiple datastore’s from a csv file Click Here
Local stored VMs List all VM’s located on local storage Click Here

Networking

 

Name Brief Description Link
One-Liners Checking Host Network Information List Host PG/IP/Subnet/Console/DNS/Device information Click Here
More one-Liner power Find a VM with a specific Mac Address Click Here
vProfiles A GUI Script to automatically configure your hosts vSwitches and Port Groups from an existing host Click Here
Easy vSwitch & PortGroup Setup Copy existing vSwitches and PortGroups from an existing Host Click Here
Lesson 3 – Networking Creation of vSwitches Click Here
Lesson 4 – PortGroups Creation of PortGroups Click Here
More Network Info Various network information Click Here
Detailed VMware Host Network Information Network information including CDP info Click Here
Getting VMware Host Physical Nic Speeds A script to list all Nics and their speeds Click Here
Mass VM PortGroup Change Change the portgroup for multiple VMs Click Here
Host Network Config Lists all the needed information to perform this best practice analysis Click Here

Reporting

 

Name Brief Description Link
vCheck 3.1 Fixes for vCheck 3 to fix slight issues Click Here
vCheck (Daily Report V3) Version 3 of the Daily Report, or now known as vCheck Click Here
Daily Report V2 Enhanced Error and issues report, listing vital information for a daily check of your entire VI Click Here
Daily Report V1 Error and issues report, listing vital information for a daily check of your entire VI Click Here
vDiagram – Draw your VI with one script Draw your Virtual Infrastructure in Visio Click Here
Mapping your VI using Netmap Draw your Infrastructure in a netmap style Click Here
Checking Logs Checking the vmkernel log for issues Click Here
Quick Stats from VMware for reports Shows how to create quick charts on your VI Click Here
Exporting VI Info into MS Word A script which creates a word document with various VMware information Click Here

Lessons

 

Name Brief Description Link
Lesson 1 – Time Source Setting up a host, adding a time source Click Here
Lesson 2 – Service and Firewall Configuration Service and firewall configuration Click Here
Lesson 3 – Networking Creation of vSwitches Click Here
Lesson 4 – PortGroups Creation of PortGroups Click Here
Using the VI APIs from Powershell Excellent guide by Luc on how to get started with the VI API’s Click Here
My First Powershell Export information into Excel Click Here

Cluster

 

Name Brief Description Link
HA Slot Size Information Detail the slot information for each Cluster Click Here
Number of vCPUs in a cluster detail the number of vCPU’s on a host and in a cluster Click Here
More One Liners List number of VM’s per resource pool and
list Host, Cluster, Number of VMs and number of templates
Click Here
Check Cluster Configurations A great script by Hugo which compares the cluster configuration Click Here

Snapshots

 

Name Brief Description Link
SnapReminder Automatically emails the creator of a snapshot after x amount of days Click Here

Security

 

Name Brief Description Link
vSphere Permissions export and import – Part 1 Walkthrough of how to export and import permissions Click Here
vSphere Permissions export and import – Part 2 Walkthrough of how to export and import permissions Click Here
Lesson 2 – Service and Firewall Configuration Service and firewall configuration Click Here
Primal Forms Example (Virtual Center Log) A great script by FatBeard showulng how to use a GUI to read the VCenter Logs Click Here
Checking Logs Checking the vmkernel log for issues Click Here

Others

 

Name Brief Description Link
vTip – A VMware Expert updating your VI Message of the day updated by Jason Boche Click Here
Running a PowerCLI Scheduled Task Details how to run a PowerCLI script as a scheduled task Click Here
vProfiles A Script to automatically configure your hosts from an existing host Click Here
Extra fields in the VI Client Excellent script by Hugo which adds information back into the Virtual Infrastructure Click Here
Check Active Directory Latency Script Check Active Directory Latency Click Here
Change DNS and WINS on multiple servers Change DNS and WINS on multiple servers Click Here
Powershell Citrix License Alerts Reading the Citrix licenses from the Web interface and reporting Click Here
Server/Workstation Audit script Audit multiple servers or workstations and produce a nice html output using this script. Click Here

PowerGUI (old VESI)

 

Name Brief Description Link
The VESI 1.2 – Get it Now List of the 2.1 Features Click Here
HA Slot Size Information Detail the slot information for each Cluster Click Here

%d bloggers like this: