Category Archives: Scripting

Detaching SCSI LUNs from ESXi hosts

About a month ago I experienced a production outage that related to improper removal of storage from a cluster. In this scenario, VMFS file systems were deleted from FC devices and then the FC devices were removed from the hosts. … Continue reading

Posted in Scripting, Virtualization | Leave a comment

Create Win32_Process

When I first started with powershell, I converted some functions from a VBscript template I used into powershell code. One of those functions used WMI to create a process on a remote machine and then return the process ID that … Continue reading

Posted in Scripting | Leave a comment

Using vSphere Image Builder and Powerpath/VE

I typically use vSphere Image Builder to create custom ISO images that contain EMC PowerPath VE. The problem is, I need to add three packages in the correct order — and I never can remember the correct order. A few … Continue reading

Posted in Scripting, Virtualization | Leave a comment

VMworld 2012 – Powershell dinner

My favorite part of VMworld is the people you meet. Last week I was lucky enough to meet up with many powershell/PowerCLI experts and have some awesome discussions. I wasn’t able to get everyones name/card, but I believe the first … Continue reading

Posted in Scripting, Virtualization | 1 Comment

Powershell – Measure Historical Command

Have you ever been working in a Powershell console and have a command run longer than expected? Did you wish that you had wrapped that command in a Measure-Command so that you could view execution time? This has happened to … Continue reading

Posted in Scripting | Leave a comment