How to get ESXi hosts Peripheral devices w/PowerCLi

This time we will look at just two functions Get-VMHostPnic/Get-VMHostHba from my PowerCLi Vi-Module module to deal with ESXi hosts’ peripheral devices. The Get-VMHostPnic for Physical Network Interface Controllers. And Get-VMHostHba intended for Host Bus (fiber channel) Adapters. Get-VMHostPnic / Get-VMHostHba Both the functions can receive ESXi host(s) from the pipeline. There is only one … Continue reading How to get ESXi hosts Peripheral devices w/PowerCLi

How to check installed patches on VMware VM w/PowerCLi

In light of recent events related to WannaCry ransomware, it becomes very relevant to check if a particular Windows Update (Patch / Hotfix / KB) is installed within VM Guest OS. Test-VMHotfix from my PowerCLi Vi-Module module will quickly and efficiently check all your VMs. The function is very simple to use. Just pipeline VM(s) … Continue reading How to check installed patches on VMware VM w/PowerCLi

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