Parallel Execution with PSJobs and PowerCLI: Deploying New VMs

PowerShell, as most command line and scripting environments, execute commands sequentially. In other words, instructions run synchronously. This means that PowerShell waits for a command to finish execution before running the next one. While this allows to have more control over each command and its output, it also reduces efficiency because only one action or […]

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 […]

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 […]

Function: Search Files in Datastores with PowerCLI vimdatastore PSProvider

From a very simplistic point of view, in vSphere datastores are like "hard drives" where VM files are stored. Normally, there is very little direct interaction between users or administrators with datastore files, they are managed via API by vCenter, ESXi and ultimately by the users who log into the vSphere Web Client. However, there […]

Getting VMKernel Adapter Details in vCenter with PowerCLI

ESXi hosts use VMKernel ports (vmk ports) to send and receive network traffic. Just as a regular, physical NIC, these virtual adapters have several properties that at some point we may need to know or gather for troubleshooting, design or configuration purposes. While it is perfectly possible to look for the vmk details using the […]