It’s Here! It’s HERE! Well, Almost – Pre-Order Hal’s Book

“Managing VMware Infrastructure with Windows PowerShell: TFM” Is now available for pre-order from Sapien In "Managing VMware Infrastructure with PowerShell", you will learn how to perform everything from simple ad-hoc reporting at the command-line ("are any of my virtual machines powered off?") to complex scripts to automate a massive deployment of hundreds of virtual machines.
-> Continue reading It’s Here! It’s HERE! Well, Almost – Pre-Order Hal’s Book

Go Go PowerShell Speed Racer! – Speeding up PowerShell scripts.

From the VI Toolkit blog. Can you spot the difference between this code: 1: foreach ($vm in (get-vm)) { 2: $disks = Get-HardDisk -vm $vm 3: foreach ($disk in $disks) { 4:  Write-Host $disk.CapacityKB 5: } 6: } And this code: 1: foreach ($vm in (get-vm)) { 2: $disks = Get-HardDisk -vm $vm.name 3: foreach
-> Continue reading Go Go PowerShell Speed Racer! – Speeding up PowerShell scripts.

Come See Us In Person – Virtualization Congress Early Bird Registration Ends Soon!

Incase you didn’t know Pancil and I will be presenting “Automating Virtual Infrastructures With Windows PowerShell” at the Virtualization Congress. Yes… Virtualization Infrastructures, not just VMware, but Xen and Hyper-V too. Get your early registration on over here. Leave me a bit of a note in the comments if you’re planning on coming.

Where Did I Put My Tools? Are They In Sync? – Checking the VMware Tools with PowerShell

It’s 7PM, do you know where your VMware Tools are? Rather, do you know if all your VM’s have them installed and running? Here is a one-liner to check that with PowerShell: get-vm | where { $_.PowerState -eq "PoweredOn" } | Get-VMGuest | where { $_.State -ne "Running" } | select vmName, State What this
-> Continue reading Where Did I Put My Tools? Are They In Sync? – Checking the VMware Tools with PowerShell

What VLAN is that VM On? Ask PowerShell!

When your network engineer, or other random folks are looking for some assistance in updating their vlan map Visio, or are generally trying to make their work yours (who doesn’t love to delegate) you can bash out this one liner against your VI, and instantly have a list of what VM is on what VLAN.
-> Continue reading What VLAN is that VM On? Ask PowerShell!

Log Bundles, of the Virtual Center Variety

Things break. They always do. Chaos is inevitable. So how do you get insight into some of the chaos that was occurring in your Virtual Center when disaster strikes? Turns out, the VI Client makes this quite easy. After you get your Virtual Center service running again, connect using the VI Client. Once connected… well
-> Continue reading Log Bundles, of the Virtual Center Variety

Getting Virtual Center “Summary” Stats With the VI Toolkit

First let me explain exactly what I’m talking about. In virtual center, when you select a host, you get a “Summary” page. On this page there are some statistics… A picture perhaps will make this easier: Better? I think so. So first for those resources on top: PS C:\> get-vmhost | get-view | %{ $_.Summary.QuickStats
-> Continue reading Getting Virtual Center “Summary” Stats With the VI Toolkit

psVIC – PowerShell Virtual Infrastructure Client

Yes, that is what it is! You can get it from here. As listed on the page, it requires the PowerShell 2.0 CTP 3 available from here. You’ll also want to grab the VMware Remote Console from here (It is optional however). Installation: After you pull down the .7z file, extract it anywhere you like.
-> Continue reading psVIC – PowerShell Virtual Infrastructure Client

Windows PowerShell 2.0 CTP 3, The Integrated Script Editor, And You

Microsoft has released CTP (Community Technology Preview) 3 of PowerShell 2.0. You can grab it here. After having tossed it on a VM, I found that it now includes a pretty script editor of it’s own: Cute, no? When you create a “WindowsPowerShell\profile.ps1” containing: “add-PSSnapin VMware.VimAutomation.Core” It’ll include all your VI cmdlets too. Nice!

Managing Your vCenter Events with PowerShell

While great, managing events with the the VI Client can be a pain. No search functionality, old events fall off the list, etc, etc. So what is an admin to do? A resourceful admin will have been playing with the VI Toolkit, and would have found the get-vievent cmdlet. Let’s take a look at how
-> Continue reading Managing Your vCenter Events with PowerShell

Removing VMware Snapshots – With a Bat (PowerShell, CLI, rCLI… and Perl)

I’ve found a few situations in which snapshots get stuck, like glue, to a running VM, and despite your best effort to delete them, they wont go away. Like in-laws, they stick around, a bit longer than is pleasant. If a snapshot has not been removed cleanly on the first try, you may want to
-> Continue reading Removing VMware Snapshots – With a Bat (PowerShell, CLI, rCLI… and Perl)

Answering VM Questions With PowerShell

Because there is an answer for everything and for everything that answer is PowerShell. Sometimes in your Virtual Infrastructure, you will have a need to answer a question or two. Normally these questions are put to you by vCenter: “Did you copy or move this VM?”, “Is today your birthday?”, “Who shot Kennedy?”. For Example:
-> Continue reading Answering VM Questions With PowerShell

VMware – An Introduction To Scripting VI Using Perl or PowerShell

These slides look to have been released after last years VMworld, and provide a great introduction to scripting and automation with the VMware tools. Link! The labs will help you get started with scripting VMware Infrastructure to enable automation, extensibility, and integration with existing tools. When we ran this at VMworld, we had about 600
-> Continue reading VMware – An Introduction To Scripting VI Using Perl or PowerShell

Now a Member of: VI Toolkit (for Windows) VIP Community Wewt!

As of today, ProfessionalVMware.com (or at least me, on behalf of ProfessionalVMware.com) is a member of the VI Toolkit (for Windows) VIP Community! What does this mean? It means: As a selected member of our VIP Community you will receive several benefits: 1.       Early access to the VI Toolkit. 2.       Insight into our product roadmap.
-> Continue reading Now a Member of: VI Toolkit (for Windows) VIP Community Wewt!

VMware VIX, now with PowerShell

This is almost as good as a Peanut butter sandwich with Marshmallow cream. Or at least as good as the four shot “Venti’” mocha I just finished. It seems there is now some third part goodness from the VIX community, that will enable you to use it (VIX That is) with PowerShell. WOOT! The original
-> Continue reading VMware VIX, now with PowerShell