Virtual Machine expiration date PowerCLI script

04/06/2012 Lior Kamrat 0

From time to time a new VM request pops out but what if this specific VM is only temporary? Well, it would be great if you could put an expiration date on this VM just like a carton of milk, don’t you think? In order to get a daily report for all your expired VM you need to do the following: Create an additional VM annotation value called “Expiration Date”. You will also have to fill up the actual expiration date for this VM in a “MM/dd/yyyy” Get-Date PowerShell command format, for example: 06/04/2012 The Script: [sourcecode language=”powershell”] $Server = [Read More]

VMware vSphere PowerCLI Poster 5.0

27/05/2012 Lior Kamrat 0

Although it was released last September I thought it would be useful to share with you the latest PowerCLI poster which can help system administrators to start exploring the PowerCLI scripting world. If you aren’t familiar with PowerCLI I suggest you to start doing some digging so you can use and understand my upcoming scripts which will be release in future posts. You can download the poster and find additional info on the subject here: http://blogs.vmware.com/vipowershell/2011/09/powercli-poster-v50.html http://www.vmware.com/support/developer/PowerCLI/index.html