Intellectual VMware snapshots

Today we will automate VMware VM snapshots with a New-SmartSnapshot function from my PowerCLi Vi-Module module. The function will utilize the embedded PowerCLi New-Snapshot cmdlet but with some smart features. New-SmartSnapshot – the smart features A snapshot name and description The function generates the snapshot name from -Requestor parameter and the current date. By default, … Continue reading Intellectual VMware snapshots

Get and Disconnect VCenter sessions w/PowerCLi

Are you sure you know who connected to your VCenter(s)? From where and when the sessions were established? How long sessions have been idle? What user agents are used (Web Client/PowerCLi, etc.) to connect and many other usable info? This time we will look at just two functions Get-ViSession/Disconnect-ViSession from my PowerCLi Vi-Module module. Many … Continue reading Get and Disconnect VCenter sessions w/PowerCLi

Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3

This is Part 3 of SDRS series. In the previous part we learned how to create and remove anti-affinity rules. To close the topic, it remains to edit/reconfigure existing rules. Logical to assume, it will be Set-SdrsAntiAffinityRule function. Set-SdrsAntiAffinityRule The function allows to edit both Inter-VM and VMDK rules. Let's go straight to examples. Reconfigure … Continue reading Reconfigure/Edit SDRS Anti-Affinity Rules w/PowerCLi – Part 3

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

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 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