HomeVMwareHow to Restore ESXi Configuration with VMware PowerCLI

How to Restore ESXi Configuration with VMware PowerCLI

Here is an article on how to restore ESXi configuration using VMware PowerCLI. Sometimes we need to restore the ESXi configuration. It might be that your ESXi server fails to boot after some maintenance because your boot media is defective. Replace the media, install a new VMware ESXi, configure Configure ESXi host, and then restore the configuration data.

Restoring the ESXi backup configuration data from the backup file requires one extra step. The ESXi server must first be put in maintenance mode via the Set-VMHost command.

When restoring the configuration file, the build version of the host should match the build version of the host that created the backup file. But you can use the -Force choice to override this requirement.

Restore ESXi Configuration VMware PowerCLI

Cmdlets are used for backup and restore.

Get-VMHostFirmware
Set-VMHostFirmware

Now, if you need to restore an ESXi host’s configuration data, you need to put the ESXi into maintenance mode first.

Connect to the host or vCenter Server with the PowerCLI command and enter your credentials.

Connect-VIServer -Server (FQDM or IP Address)
VMware powercli connect command

Type credentials, and then click OK.

Specify credentials esxi

The ESXi server successfully connected.

Connect-VIServer powercli command

I have the ESXi host configuration file in the download folder on the C drive.

This PC

Put Host into Maintenance Mode

Enter the following command to put the host in maintenance mode:.

Set-VMHost -VMHost [FQDN or IP] -State ‘Maintenance’
Set-VMHost maintenance mode

Verify that the host is in maintenance mode.

VMware client host maintenance on

Restore the host configuration data from the backup directory by running the PowerCLI command.

Set-VMHostFirmware -VMHost [FQDN or IP] -Restore -Force -SourcePath [Path]

The ESXi server will reboot immediately once you hit the enter key.

Restore esxi configuration

Type host credentials and then hit OK.

Specify credentials ESXi

Restarting host.

Restarting host

Now you can verify your host configuration.

VMware host networking

As you can see, it’s a simple way to restore the configuration data of your ESXi hosts.

Related: How to Backup VMware ESXi Host Configuration File With Putty

Conclusion

With the above article and information, you will be able to restore the configuration data in a disaster recovery event or configuration error. Follow my article on how to take backup ESXi configuration data. Always ensure to check and verify the created backups.

Jamil
Jamilhttp://jamiltech.com
A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

what is cryptocurrency and bitcoin on How to Backup and Restore IIS Configuration
경기광주출장안마 on How to Backup and Restore IIS Configuration
영등포출장마사지 on How to Backup and Restore IIS Configuration
Twalsu light mirror for vanity on How to Backup and Restore IIS Configuration
fitspresso analysis on How to Reset Microsoft 365 Password
historical landmarks tours for history buffs on How to Add Hyper-V Server Altaro VM Backup
9780443186882 PDF download on How to Migrate Active Directory 2012 to 2022
Shaik Mohammad Jaheer on How to Enable Night Light on Windows 11