VMware VSAN PowerCLi module

With the PowerCLi 6.5.1 release, the new Get-VsanView cmdlet is now available that exposes the complete VMware VSAN Management API. The famous VMware guru William Lam demonstrated the great proof of concept for managing and silencing VSAN Health Checks. After reading this article, I decided to create VSAN PowerCLi module. You can download it (and many other resources) … Continue reading VMware VSAN PowerCLi module

How to control maximum number of VMware snapshots w/PowerCLi

Six years ago, the VMware guru William Lam wrote this excellent article. Today we will automate his solution with PowerCLi. Please meet the Set-MaxSnapshotNumber function from my PowerCLi Vi-Module module. The function can do three things: Get maximum allowed snapshot number Set maximum allowed snapshot number Prohibit taking snapshots at all Moreover, it is all … Continue reading How to control maximum number of VMware snapshots w/PowerCLi

How to migrate VMware VM Templates to another Datastore w/PowerCLi

What’s the problem? There is no direct way to migrate VM Templates from Datastore to Datastore (aka Storage VMotion procedure). Please review available actions for both types of virtual objects. VM on the left and Template on the right. Right, Templates have not the «Migrate…» option. There are no PowerCLi cmdlets for this task too. … Continue reading How to migrate VMware VM Templates to another Datastore w/PowerCLi

Put PowerShell scripts to sleep with Progress Bar

All of you know very well the embedded PowerShell cmdlet Start-Sleep, which able to put a script to the sleep for a certain period measured in seconds or milliseconds. This is great, but not enough. Start-SleepProgress The Start-SleepProgress function from my PowerShell MS-Module module has some enhancements compared to the usual Start-Sleep cmdlet. First of … Continue reading Put PowerShell scripts to sleep with Progress Bar

Compare two or more ESXi hosts w/PowerCLi

The Compare-VMHost function from my PowerCLi Vi-Module allows you to compare two individual ESXi hosts one to another or compare group of hosts, for example, all HA/DRS Cluster members with one reference host. Mandatory parameters The function has two mandatory parameters. -ReferenceVMHost - the reference host that will be compared to the others. -​DifferenceVMHost – … Continue reading Compare two or more ESXi hosts w/PowerCLi

How to create colored and adjustable Percentage Bar in the PowerShell

In one of the scripts on GitHub I found interesting function Show-PercentageGraph, written by vmdude (Frederic MARTIN). I decided on basis of this function to develop my own more robust and adjustable function. I introduce to you the function New-PercentageBar that is part of MS-Module from my PowerShell repository. New-PercentageBar One of the powerful features … Continue reading How to create colored and adjustable Percentage Bar in the PowerShell