PowerShell script to backup ESXi Host Configuration

Amyn Zariwala
1 min readFeb 20, 2019

#############################################################
# The Script will allow to backup the ESXi Host Configuration ###########################################################

cls
Import-module VMware.VimAutomation.Core

# Connect to vCenter Server
$vCenter = Read-Host ‘Enter the vCenter Server Name’
Connect-VIServer “$vCenter”

#Get ESXi Host
$vmhost = Read-Host ‘Enter the ESXi Host Name (E.g. hostname.domain.com)’

#Backup the host configurations
Get-VMHostFirmware — VMHost $vmhost -BackupConfiguration -DestinationPath c:\Temp

--

--

Amyn Zariwala

Co-Founder @ AZTA Group Pty Ltd | Cloud/Infrastructure Solutions Architect | TechExpertsBlog | | Professional Mentor | Influencer | Justice of Peace NSW