How to configure Storage DRS clusters w/PowerCLi – Part 1

Despite the growing popularity of VMware VSAN, largest enterprises are still partially or completely continue to work with shared storage. There are enough PowerCLi cmdlets to deal with HA/DRS cluster aspects, but for SDRS clusters the choice is not great. This time we will look at just two functions Set-SdrsCluster/Get-SdrsCluster. These functions will complement the … Continue reading How to configure Storage DRS clusters w/PowerCLi – Part 1

How to get VSAN capabilities w/PowerCLi

More than two months ago I have introduced my VMware VSAN PowerCLi module Today we will add one more function Get-VSANCapability to the module. Get-VSANCapability Each vSphere/VSAN release brings more and more features and capabilities to VSAN Clusters. For example, Stretched Clusters were introduced in VSAN 6.2, iSCSI Targets in 6.5 and Verbose mode for … Continue reading How to get VSAN capabilities w/PowerCLi

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. UPDATE 19-Nov-2017 The Get-VMHostPnic from v.1.2: The -Nolink parameter replaced with two new parameters -SpeedMbps and -Vendor. Added three … 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

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

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