Broadcom provides an official procedure for gracefully shutting down a VMware Cloud Foundation (VCF) 9.1 Services Runtime cluster. The provided solution uses a Linux shell script (vcf_services_runtime_shutdown.sh), which works well on Linux systems but is less convenient for Windows administrators.
Rather than using Windows Subsystem for Linux (WSL) or a separate Linux machine, I converted the official shell script into a native PowerShell version. This allows the entire shutdown procedure to be executed directly from a Windows workstation while following the same workflow as the original Broadcom script.
Downloads
📦 VCF 9.1 Shutdown VCF Services VMs.ps1
📦 vcf_services_runtime_shutdown.ps1
📄 Original Broadcom Knowledge Base vcf_services_runtime_shutdown.sh
Why Use the Official Shutdown Procedure?
Prerequisites
Before You Begin
Determine the Control Plane Node IP Address

PowerShell Wrapper Script
Download Wrapper Script
➡ Download: Shutdown VCF Services.ps1
# VCF Services shutdown by Ward Vissers
# Variables
switch ((get-host).Name) {
‘Windows PowerShell ISE Host’ { $vcf_folder = $psISE.CurrentFile.FullPath -replace ($psISE.CurrentFile.DisplayName,””) }
‘ConsoleHost‘ { $vcf_folder = $myInvocation.MyCommand.Path -replace ($myInvocation.MyCommand.Name,”“) }
‘Visual Studio Code Host‘{ $vcf_folder = $psEditor.GetEditorContext().CurrentFile.Path | Split-Path }
}
# Go to the VCF folder
Set-Location $vcf_folder
$Credential = Get-Credential –UserName “administrator@vsphere.local” -Message “vCenter Login Creds”
# Shutdown Test Run
.\vcf_services_runtime_shutdown.ps1 –DryRun –NodeIp <your_node_here> –Credential $Credential
# Shutdown Run
.\vcf_services_runtime_shutdown.ps1 –DryRun –NodeIp <your_node_here> –Credential $Credential
Authenticate Securely
Perform a Dry Run

Execute the Shutdown
Expected Result



You must be logged in to post a comment.