powershell

Using PowerCLI VIProperties and the VIProperty Module

In PowerShell it is possible to use custom properties for an object if the one you need does not exist by default - these are known as calculated properties. For instance, in PowerCLI by default there is no ToolsVersion property for a VM, however we can create a calculated property named ToolsVersion and submit an expression to retrieve that data: Get-VM TEST01 | Select-Object Name,@{Name="ToolsVersion";Expression={$\_.ExtensionData.Config.Tools.ToolsVersion}} However, the ToolsVersion property does not persist after running this command, so if I now try:

PowerShell European Deep Dive Registration Info & Call for Session Proposals

Following on from the highly successful first PowerShell Deep Dive conference held in Las Vegas in Feb 2011 the PowerShell team have announced details of a European equivalent to be held at TEC Europe 2011 in Frankfurt on October 17 & 18 2011. Registration info and details on how to submit session propposals can be found on the PowerShell team blog: -——————————————————————————————————————————————————- Here’s some more info on the 2nd PowerShell Deep Dive that will be at TEC Europe 2011 in Frankfurt on October 17 & 18.

PowerCLI Book: Kindle Version Available Again!

The question we have been asked the second most was back in April, “Why is the Kindle version more expensive than the paperback?”. At the time we went back and forth with both the publisher and Amazon and received conflicting answers. Well now that is back in the various Kindle stores again, this situation also seems to have improved and typically it is slightly less than the paperback in price.

PowerCLI: Exception of type 'System.OutOfMemoryException' was thrown

When working with PowerCLI in a large environment and retrieving large amounts of data, particularly when using the Get-View cmdlet, you may receive the following error: Get-View Exception of type ‘System.OutOfMemoryException’ was thrown Looking at the available memory on your system may cause you to wonder why you receive this error message. It may occur because you are running the 32-bit version of PowerCLI where the size of the heap is limited to 1.

PowerGUI® Pro and PowerGUI® 3.0 Released

Having been using the beta for a while, I was very pleased to see that PowerGUI V3 has been released. Some of the new features / fixes that I like the best are: Create Executable from Script One click install for PowerPacks PowerCLI 4.1 Support in the VMware PowerPack Have a look at Kirk’s site for full details http://poshoholic.com/2011/07/15/powergui-pro-and-powergui-3-0-are-now-available/

Slides from UK PowerShell User Group Session on Modules

I was luck enough to be given the opportunity to present a UK PowerShell User Group session on PowerShell Modules. If you want to check out the slides from this session then they are below: An Introduction to PowerShell Modules View more presentations from jonathanmedd. I have also included the 4 demo text files which contain the commands I was using during the demos. Demo1 Demo2 Demo3 Demo4 You can get the recording from Richard’s blog

May 10th 2011 - UK PowerShell UserGroup: All About Modules

Join me on Tuesday May 10th 20.30GMT for a UK PowerShell User Group session: All About Modules “Join PowerShell MVP and author Jonathan Medd to learn about PowerShell modules and how to get the most out of them. Notes Richard Siddaway has invited you to attend an online meeting using Live Meeting. Join the meeting. Audio Information Computer Audio To use computer audio, you need speakers and microphone, or a headset.

PowerCLI Book Raffle

Most projects have to start somewhere as an idea, and this one was no different. When Sybex contacted us, our idea suddenly became a reality and now after quite a journey, our book has finally arrived. Because most of the content of this book is inspired by the PowerCLI community, we decided to give something back. To celebrate the release of our book, we’re organizing a book raffle. Read the instructions below and enter the draw for a chance to win a free copy of “VMware vSphere PowerCLI Reference: Automating vSphere Administration”.

Get-Scripting Podcast Episode 22 - Travis Jones (PowerShell Deep Dive Conference)

Whilst attending the recent MVP summit I was fortunate enough to get some podcast recording time with Travis Jones from the PowerShell product team. We are able to have a chat about the upcoming PowerShell Deep Dive Conference and the kind of treats instore for those lucky enough to attend. There’s still time to register for the conference so I highly recommend you do if you have the chance to attend.