Category: PowerShell

Posted in PowerShell

Embracing UEFI Booting and Secure Boot in ESXi Environments

Transitioning from BIOS to UEFI booting in ESXi environments is a pivotal step toward enhancing system security and performance. UEFI, with its advanced features like…

Continue Reading
Posted in PowerShell

Embrace the Power of PowerCLI 13.1: Innovative Modules, Enhanced vSAN Capabilities, and Beyond

This version ushers in a long-awaited PowerCLI feature – a PowerCLI module for vSphere Replication, utilizing the same foundation as our auto-generated modules for NSX…

Continue Reading
Posted in 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…

Continue Reading
Posted in PowerShell

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

Continue Reading
Posted in PowerShell vCenter Virtual Machines

Let’s talk about snapshots! Snapshots Explained!

A VMware snapshot is a point-in-time copy of the virtual machine’s state, including its virtual disk files and configuration. Snapshots are used to capture the…

Continue Reading
Posted in PowerShell

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

Continue Reading
Posted in PowerShell

PowerCLI 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)…

Continue Reading
Posted in PowerShell

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

Continue Reading
Posted in PowerShell

PowerShell to ensure TLS1.2 is enabled

Today I will show you how to ensure that TLS1.2 is enabled. I will write a short script to perform a check and remediate if…

Continue Reading
Posted in PowerShell

Let’s create a local user for ESXi and add the new account to the exclusion list for Lockdown Mode

Today we will use PowerCLI to create a local user for ESXi hosts and exclude that user from Lockdown Mode. The challenge is to communicate…

Continue Reading