Posts under ‘Scripts’

Why New-VIProperty Matters!

As you may have noticed, PowerCLI 4.1 has some cool new features for accessing the underlying SDK objects from within the PowerCLI objects. Before PowerCLI 4.1 your only door to the SDK objects was using the Get-View cmdlet, but you can use the .ExtensionData property now. This makes it much easier and requires less code [...]

PowerCLI 4.1 namespace changes

Output type changes in PowerCLI 4.1In PowerCLI 4.1 VMware changed the namespaces of the output types. According to VMware, this was done to improve the internal structure and enable other VMware teams to write cmdlets for the products they develop. You can read all about it in the vSphere PowerCLI blog article Output type changes [...]

Collect VMware ESX Host PCI Device Information

Whenever you need to install a new box with ESX, there’s the struggle with matching physical ports to VMware devices. Which network adapter becomes vmnic0?, Which hostbus adapter becomes vmhba1?, etc. Especially when you have a lot of network adapters this can be confusing and you can’t connect to the device over the network unless you [...]

PowerCLI: Reset CPU and Memory Limits

Today I noticed a memory limit on a vm. After investigating my environment using the vEcoShell and the Community PowerPack, I found more vms with memory limits set. It turned out that there was a template which had the limit set. I could easily reset all limits using the GUI, but I thought I rather do it [...]

PowerCLI: Disable/Enable HA and DRS

Before upgrading my Virtual Center 2.5 server to vCenter Server 4.0, I decided to temporarily disable HA and DRS. This is just a precaution taken to avoid waiting for cluster reconfigurations right after the upgrade. Because I hate doing things more than once by hand, I used PowerCLI for this.
Although no rocket science you can use the [...]

The VESI – Getting it up and running

On April 8th we had a very good DutchVMUG meeting, which was totally dedicated to using PowerCLI and The VESI (Virtualization EcoShell Initiative). Although setting up the environment is straightforward, I wanted to do a small write-up which leads you through the install process and includes all download links needed.
Installation Overview
The complete setup of the [...]

Unattended upgrade of HP mgmt agents – Part 3

In my post Unattended upgrade of HP mgmt agents – Part 2 you could read about my script for an unattended installation of the HP Management agents on ESX3.5. In this part I’ll share my next version of the script for installing the HP Management agents on ESX4.0 and ESX4.0 U1.
In the ESX4 installation, the location of [...]

Unattended upgrade of HP mgmt agents – Part 2

It’s been a year since I blogged about my script to perform an unattended upgrade of the HP management agents 8.1.1 on ESX 3.5 U3. After HP upgraded their management agents to version 8.2.0 some things changed. The installation procedure is now a 2 step process. First there’s a script which modifies some startup [...]

PowerCLI: Match VM and Windows harddisks – Part 2

This is a follow up on a post I did a couple of weeks ago to create a mapping table between Windows- and VMware hard disks. In another previous post PowerCLI: Get WMI info from isolated guests, I showed you how to get WMI info from a guest without using the guest’s network. I used this [...]

PowerShell / PowerCLI linkage

Since I started looking into PowerShell and PowerCLI, I gathered a couple of links which I found interesting and useful. I needed a way for them to be accessible anytime anywhere. Obviously the first thing that came across my mind was putting them on my blog somewhere.
I decided to dedicate a page on my blog [...]