Category Archives: Scripting

P2V Post Migration Cleanup

I’ve been doing a lot of P2V migrations over the last few months and wanted to share a couple of lessons learned. Our environment uses McAfee ePO to centrally manage our desktops and servers. We noticed that after a P2V … Continue reading

Posted in Scripting, Virtualization | Leave a comment

A quick way to find virtual machines with incorrect names

A few days back I saw a twitter post from @maishsk which linked to this article: http://technodrone.blogspot.com/2010/04/how-to-speed-up-your-powercli-queries.html The article got me thinking about the difference between Get-VM and Get-View and I wanted to apply it to a script I’ve been … Continue reading

Posted in Scripting, Virtualization | Leave a comment

Storage vMotion with Thin-Provisioning in PowerShell

In an earlier post I mentioned a script written by a co-worker to determine all of the non-thinprovisioned virtual machines.  This script is a follow-up to that, which allows actually uses storage vMotion to resolve the problems.  It is important … Continue reading

Posted in Scripting, Virtualization | Leave a comment

Get Thick Provisioned Disks

Another interesting PowerCLI script from today.  My proof of concept environment uses thin provisioned disks — this lets us have a lot more test machines than we really have disk space.   The other day we ran out of space … Continue reading

Posted in Scripting, Virtualization | 1 Comment

Guest OS Mis-match

I’ve been working on cleaning up my vSphere environment and found a very handy one-liner today.  The full article can be found here: http://frankdenneman.nl/2009/12/impact-of-mismatch-guest-os-type/ I took the suggestions in the comments and came up with the following: Get-View -ViewType VirtualMachine … Continue reading

Posted in Scripting, Virtualization | Leave a comment