Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "vcenter"

Broadcom PowerCLI: Building a GUI to Check VMware HA Admission Control Compliance

This PowerCLI GUI script I have written to audit VMware ESXi clusters high availability (HA) inside vCenter Server. This script validates below ideal configuration is defined on the cluster and tells me whether configuration is correct with green tick and non-compliant with red cross.

Note: …

Read more

Automating VMware ESXi Cluster Admission Control Report Insights with PowerCLI

This PowerCLI script retrieves detailed information about VMware Cluster High Availability (HA) and Admission Control policies. It is extremely useful for system administrators and auditors who need to verify that cluster settings comply with engineering or governance standards.

By running this s…

Read more

How to Renew and Refresh an ESXi Certificate with a PowerCLI script

By renewing VMware ESXi server certificate through vCenter Server you can safeguards adherence to security best practices. You renew ESXi certificate to continue securing connection for your vSphere environment, avert trust issues with vCenter Server, and guarantee compatibility for upgrades, as exp…

Read more

Get VMware vCenter Appliance Version using Broadcom PowerCLI VCSA REST API

This PowerShell script uses VMware vCenter Server Rest API and shows VCSA (vCenter Server Appliance) version through the command line. Keeping track of your vCenter Server Appliance (VCSA) version is crucial for effective management and update. Simply provide your vCenter credentials, and the script…

Read more

Install VMware VCSA Patch Upgrade using PowerCLI vCenter REST API

This is the main script in the series and does major task of Installing the latest patch update on VCSA (VMware vCenter Server Appliance).

Screenshot of Install Broadcom VMware VCSA Patch Upgrade using PowerCLI vCenter server REST API

While running this script you will need to provide vCenter Server, User, Password, Version (Optional), Patch URL parameter information in the script, a…

Read more

Check VCSA Upgrade Staging Progress using PowerShell vCenter REST API

While staging patches update on the VCSA (vCenter Server Appliance), it takes some time to download updates on vCenter Server from remote source. Using this script I can track whether staging is completed or not. It simply shows value true or false for Staging Completed in the given output. I found …

Read more

Leveraging PowerShell to Stage VCSA Updates via vCenter REST API

Staging in VMware VCSA (vCenter Server Appliance) allows you to upload/download patches and updates, In the staging process it does not directly install or apply the patches/updates immediately but just copies patch updates on VCSA appliance. Which allows for a faster remediation process during upda…

Read more

Retrieve VCSA vCenter Version with PowerShell REST API

This PowerShell helps to fetch the current version of  VCSA (VMware vCenter Server Appliance). This information is useful while automating VCSA upgrade, It is fetched used from VCSA REST API.

Screenshot of a PowerShell console running 'Show-VCSACurrentVersion.ps1'. The output shows 'Appliance Update Status:', 'Latest Query Time: 08/04/2025 16:00:56', 'Current State: UP_TO_DATE', and 'Installed Version: 8.0.0.300400'.

In the vCenter Server Management portal you can see the Version in the update.

Screenshot of the vCenter Server Management interface, 'Update' tab. It shows 'Current version details' as 8.0.0.400. Below 'Available updates', an update for version 8.0.0.500 is listed as 'Staged', with 'Type: Fix', 'Release Date: Apr 10, 2025', 'Reboot required: Yes', and 'Severity: Critical'.

You can downlo…

Read more

PowerShell & VCSA: Checking for Pending & Latest Updates via REST API

This script helps me to get the latest available pending updates for VCSA in vCenter Server Appliance Management portal before stage and install. It shows all in dept information of pending update from local web repo website url. Which will be helpful to automate installation further with correct ve…

Read more

Reset vCenter Server Appliance (VCSA) Forgotten Root Password Without Reboot

These steps help you to Reset VMware vCenter Server Appliance (VCSA) Forgotten Root Password, best part it does it without reboot means no downtime. First prerequisite for this is SSH must be enabled on VCSA server and Second part is you must know [email protected] account password to lo…

Read more

Delete VMware VCSA Management Schedule Backup Job using PowerShell

This PowerCLI script helps to remove vCenter Server Appliance Management backup schedule job.

Screenshot of a PowerShell console showing the execution of 'Remove-VCSAScheduledBackup.ps1' script. The output confirms a connection to 'marvel.vcloud-lab.com', and then states 'Removing existing backup schedules...' followed by 'Deleted schedule: monthly', indicating successful removal of a vCenter backup schedule.

You can download Remove-VCSAScheduledBackup.ps1 script here or it is also available on github.com.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
1…

Read more

Modify Broadcom VCSA Management Schedule Backup Job using PowerCLI

This is VMware PowerCLI script helps to modify existing Backup Schedule in VCSA (vCenter Server Appliance). To manually edit existing backup schedule open vCenter Server Management portal with 5480 port. In the Backup click EDIT link and modify the settings. 

vCenter Server Backup Configuration screenshot showing backup schedule and activity Powercli  PowerShell automation devops

In the below PowerShell script, …

Read more

Configure vCenter Server Appliance Schedule Backup With VMware.PowerCLI

In my earlier article, I wrote a script to backup VCSA (Broadcom VMware vCenter Server Appliance) on demand using VMware.PowerCLI (PowerShell). In this article I want to have more automated way to setup a schedule job to have backup at scheduled time. To setup backup schedule in VCSA, login to vCe…

Read more

Performing vCenter Offline Updates Via Your On-Prem Web Server Securely & Seamlessly

Handling vCenter Server updates across multiple sites with limited internet access creates operational annoyances. Downloading ISO files for each instance, manually transferring them, and repeating the process for every vCenter consumes valuable time and resources for really big environments.

In …

Read more

Excel on Web Browser: Simple Guide for Reports & Dashboards

This is a Quick Guide on displaying Excel files in your choice of browser such as chrome, edge etc Instantly. 

Benefits of Using This Method:

  • Share and Collaborate Easily: A Web-Based Excel Viewer for Teams.
  • 100% HTML Code: Render Excel files directly in the browser.
  • Easy Update…

Read more

How to Upgrade VMware vCenter Server Using Lifecycle Manager (vLCM)

Upgrading your VMware vCenter Server is a crucial part of maintaining a secure and efficient virtualization environment. In this guide, we’ll walk through the process of upgrading a vCenter Server using VMware Lifecycle Manager (vLCM), highlighting each key step with screenshots and best practices…

Read more

Advanced VMware Virtual Machine Disk Mapping HTML Reporting with PowerCLI

While managing large Broadcom VMware environments, understanding how multiple Virtual Machines virtual disks are mapped across datastores, SCSI controllers, and guest partitions is critical for performance tuning, troubleshooting, and capacity planning. Doing this manually is time-consuming and erro…

Read more

Reset VMware ESXi root password from vCenter using PowerCLI

When I began working with a new client on their Virtualization Broadcom VMware project, I encountered several ESXi servers that were already deployed and connected to vCenter servers. Since I was new to the project, I found that the root passwords for some of these ESXi servers were undocumented and…

Read more

Broadcom VMware PowerCLI based ESXi capacity planner html web portal

I had a requirement to provide a solution for monitoring ESXi servers' CPU, memory, and datastore usage to non-IT or developer users without giving them direct access to vCenter or ESXi servers. The solution needed to avoid using any additional applications or tools. Previously, I had set up a syste…

Read more

PowerCLI List Add Delete Role Assignment account user on ESXi server with esxcli

I faced a scenario where I needed to automate the execution of a shell script on VMware (Broadcom) ESXi servers, version 7. The task involved renaming /etc/rc.local.d/local.sh to a .bak extension and restarting all services using /sbin/services.sh restart, which was necessary to resolve VM disconnec…

Read more

20 blog posts

Blog Search

Page Views

13869636

Archive

Follow me on Blogarama