Okay, so I’ve just announced I won’t post anything for the coming month. You must all feel very sad.
Well, before leaving you sobbing over an empty feed reader, here’s one more oneliner. One for the road.
Get-VMHost | Sort Name | Get-View | Select Name, @{N=”MemoryGB”;E={[math]::Round((($_.Summary.Hardware.MemorySize)/1GB),0)}}, @{N=”MemoryUsageGB”;E={[math]::Round((($_.summary.quickstats.overallmemoryusage)*1MB/1GB),2)}}, @{N=”Percentage”;E={[Math]::Round(100*(($_.Summary.QuickStats.OverallMemoryUsage*1MB/1GB)/($_.Summary.Hardware.MemorySize/1GB)),0)}}
What the *bleep* does that do? I’ll [...]
I’m sorry to announce that I won’t be able to post anything until the beginning of October. But I will be back, so please keep me in your RSS feed or check back here in a month. I’ll be back full-force, with more awesome one-liners, helpful scripts and fantastic functions!
Here’s a one-liner to show [...]
Today, I have some quick-and-easy VI Toolkit ‘Get-VIEvent’ one-liners for you. Let’s get started right away:
To get all events relating to a certain Virtual Machine, try this:
Get-VM “MyVMName” | Get-VIEvent | Format-Table CreatedTime, FullFormattedMessage -AutoSize
To get all errors from the past 24 hours, enter:
Get-VIEvent -Start (Get-Date).AddHours(-24) -Type Error | [...]
Today’s Helpful Script of the Day is a handy little script I cooked up that allows you to search the recent entries of your VMware log files straight from the Powershell Console.
It works like this:
First, it would like to know what string you are looking for. Maybe it’s the [...]
The guys at VMware (Carter Shanklin specifically) have really listened to their Community. We were all very excited about the release of the VI Toolkit, but for some reason the frequently used command Get-VM was much slower than it was in the Beta. Carter’s promising improvements with the VI Toolkit v1.0 [...]
When you install VMware Update Manager Update 2 on your Virtual Center Server and then you install the plugin from your VI Client ánd you have the VI Toolkit installed, you have the option to install the Powershell extensions for Update Manager. They are still in beta though, so only [...]
Today’s Helpful Function of the Day is a great one to store in your profile. (Don’t know how to create or update your own custom profile? Read this.) It’s syntax is a simple as:
Get-MyServer SERVERNAME
It returns server information such as Operating System Version and Service Pack, Active Directory Description and Parent Container [...]
Eric Sloof found a simple way to make your Powershell scripts talk back to you. It’s hilarious!
Check it out here.
This “Helpful Script of the Day” will determine the Video Hardware Acceleration Level for each of your Virtual Machines. Setting the Acceleration to Full will prevent choppy mouse movement when using the console. You can just as easily adjust the script to run against a list of servers of even get the server list from [...]
Tags
Active Directory API bind order cleanup cluster CPU Custom Fields datastores description device management directory tree errors Event Log file name filter Fun function HA IT known issues License Server LUN multipath NIC objects Oneliner portgroups PowerCLI PowerShell profile recursive Registry Scripts security session share snapshots SQL Stat VI Toolkit VMware vSphere WMI WSUS ZenArchives
- July 2012
- July 2011
- February 2011
- January 2011
- December 2010
- May 2010
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008

Keep Your Server Descriptions Synchronized
Today’s “Helpful Function of the Day” is my attempt to help you keep your server descriptions in sync.
You use it by placing it in your profile, or by dot-sourcing the script, or by adding the function to one of your own scripts. The syntax is:
Check-Description [-ServerName] <YourServer> [-SkipIdentical]
If you would like to [...]