Create and delete SDRS Anti-Affinity Rules w/PowerCLi – Part 2

This is Part 2 of SDRS series. The Part 1 How to configure Storage DRS clusters w/PowerCLi – Part 1 is here. Part 3 Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3 and may be even Part 4 How to get SDRS History/Actions w/PowerCLi – Part 4 are expected in near future. This article will cover … Continue reading Create and delete SDRS Anti-Affinity Rules w/PowerCLi – Part 2

ps1Liner :: Add PowerCLi version to the $PSVersionTable variable

What is one-liner? This is just one line of code (PowerShell/PowerCLi or whatever) intended to perform particular task. It may be very or sometimes very-very long, but is still one line only! This one-liner adds PowerCLi version to $PSVersionTable environment variable. The technique described by Microsoft MVP Jeffery Hicks in this article. 1Liner Note, in … Continue reading ps1Liner :: Add PowerCLi version to the $PSVersionTable variable

ps1Liner :: Eject CDROM drive for all VMware VM

What is one-liner? This is just one line of code (PowerShell/VMware PowerCLi or whatever) intended to perform particular task. It may be very or sometimes very-very long, but is still one line only! This one-liner unmounts Datastore ISO file from all CD/DVD drives for all pipelined VM. 1Liner WhatIf You can review the state before … Continue reading ps1Liner :: Eject CDROM drive for all VMware VM

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

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