Category Archives: Scripting

Get-Beer Powershell function

Earlier in the week I had the privilege of presenting an introduction to Powershell/PowerCLI webex to a group of VMware customers. To help explain the Where-Object, Select-Object, and Sort-Object cmdlets, I thought it would be helpful to create a Get-Beer … Continue reading

Posted in Scripting | Leave a comment

Multiple vCenters and MAC address conflicts

VMware KB article 1024025 explains an issue with MAC address conflicts due to multiple vCenter configurations with the same instance ID. Here is a technical description straight from the KB article: Each vCenter Server system has a vCenter Server instance … Continue reading

Posted in Scripting, Virtualization | 2 Comments

Powershell title bar and profile

This is a very simple post, but it shows how to make the Powershell title bar contain useful information. By default the Powershell title contains the path to the powershell.exe file — here is an example: To make this more … Continue reading

Posted in Scripting | Leave a comment

Simple examples of Powershell PSCustomObject

In most of my Powershell scripts I make use of the PSCustomObject to store results. The example I first learned (and use all the time) looks just like this: $item = “” | Select Name, RAM, CPU $item.Name = “blah” … Continue reading

Posted in Scripting | Leave a comment

Working with the lastLogon attribute in PowerShell

I have been spending a lot of time working on Powershell scripts. Specifically, I have been re-writing many VB scripts and processes into more efficient powershell versions. In my last post I mentioned that I planed to share how I … Continue reading

Posted in Messaging, Scripting | 2 Comments