Getting Detailed Task Information With PowerCLI (Function)

If you are reading this there is a good chance that you have some experience with VMware PowerCLI. If that is the case, you are probably aware that PowerCLI is a solid, mature product. However, as any other software tool, it has some improvement opportunities. One of the most notable examples of its few shortcomings […]

Organize Your PowerShell Code With Regions and Multiline Comments

Introduction When learning any scripting or programming language, we are always told that comments are extremely important, they are essential for code readability and maintainability. Well, PowerShell is no exception to the rule and fortunately there are "tricks" that make it easy to add comments to source code. In this post we will go over […]

Getting CPU Ready Time Stats With VMware PowerCLI

Introduction For those of us involved in the virtualization world, specially with VMware technologies, CPU Ready Time is one of those metrics that are extremely important but also hard to understand for administrators. CPU Ready Time is the percentage of time during which a virtual CPU has to wait to access the physical CPU during […]

PowerShell: Practical Use of PipelineVariable Common Parameter

Introduction The PipelineVariable Common Parameter is one of those PowerShell's "hidden gems" that are often overlooked, and not widely used. When specified, the PipelineVariable parameter stores the objects from the pipeline in a variable named after the assigned parameter value. For instance: Here we assign the value 'Process' to the PipelineVariable parameter, so as long as […]