Introducción: Administrar un gran número de máquinas virtuales en vCenter puede ser un desafío, especialmente cuando se necesita realizar un seguimiento de información específica para cada VM. Los atributos personalizados pueden ser útiles en estos casos, ya que permiten almacenar metadatos sobre sus VMs. En esta entrada de blog, vamos a explicar un script de…
Read moreTag: PowerShell
Create and Assign a Custom Attribute for Virtual Machines in vCenter Using PowerShell
Introduction: Managing a large number of virtual machines in vCenter can be challenging, especially when you need to keep track of specific information for each VM. Custom attributes can be helpful in such cases, allowing you to store metadata about your VMs. In this blog post, we will walk through a PowerShell script to create…
Read moreExploring PowerShell: Understanding a Script to Move VMware Virtual Machines to a specific folder.
PowerShell is a powerful automation tool used to manage and automate Windows-based systems. With its rich set of commands, it can help administrators perform various tasks, including managing virtual machines (VMs) on VMware platforms. In this blog post, we will explain a PowerShell code that imports a CSV file containing a list of VMs and…
Read morePowerShell to bulk remove VIBs from multiple ESXi hosts (putting hosts in MM mode beforehand)
During my last upgrade from vSphere 6.7 to vSphere 7.0 on one of my clusters, I come across the issue with VIBs. Of course, the upgrade process was stopped and I saw the error shown in the picture below: As you can see the baseline is Incompatible and The upgrade has VIBs that are missing…
Read morePowerCLI and PowerShell cheat sheet
Here are commands, every vSphere admin should know: List of available interfaces and physical network cards (vmkernel + vmnic): Adding another interface (vmkernel to vMotion) in ESXi: Removing a specific interface (vmkernel) on ESX: To check if IPv6 is enabled: To enable IPv6: NOTE: After turning IPv6 on/off. reboot is required Listing information about hosts…
Read moreA general system error occurred: Exceeded the maximum number of permitted snapshots” error when creating a virtual machine snapshot
Before upgrading my NSX-T nodes I wanted to take a snapshot. To my surprise, I was not able to do so, as I received an error message: Exceeded the maximum number of permitted snapshots. There were no snapshots for this particular virtual machine. Having looked at the KB provided by VMware I learned that settings…
Read morePowerCLI 12.7 is here and packed with a lot of new features!
The new version of PowerCLI has been released. The release has number 12.7 and is packed with new and exciting features. Along with improving the performance, VMware added new cmdlets and worked on existing ones, however, the most significant was work on a long-requested module available on PowerShell Core. Let’s have a look into PowerCLI…
Read moreBlack Basta Ransomware is now actively targeting VMware ESXi servers – Protect your environment!
What is Black Basta? Researchers from Uptycs reported that Linux version of Black Basta ransomware is now actively targeting ESXi servers, previously targeting Windows systems. Black Basta has been active since April 2022, like other ransomware operations, it implements a double-extortion attack model. Double-extortion scheme works in the way that first malicious actors extort victims…
Read moreHow to determine if my virtual machines have a USB controller attached and how to remove it?
In the wake of recent published VMSA-2022-0004 admins can wonder how to determine if Virtual Machine has a USB controller attached. Now thanks to PowerCLI it is an easy task. NOTE: I did not come up with this code, this code was originally published on VMware advisory website Before admins can remove USB controllers, The virtual…
Read moreFIX: After upgrade PowerCLI to 12.5 there is no Get-VIApplianceService Command
You may come accross that after updating your PowerCLI module to version 12.5, you cannot run Get-VIApplianceService command. Even that your modules shows correct version. I initially was not able to get it to work in my lab due to several installations/versions of PowerCLI on my server. I was able to resolve the issue by…
Read more