Thursday, January 29, 2026
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. Might be your ESXi server fails to boot after some maintenance because your boot media is defective. Replace the media, install a new VMware ESXi, and Configure ESXi host, and then restore the configuration data.

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

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

ESXi server successfully connected.

Connect-VIServer powercli command

I have the ESXi host configuration file in the download folder in 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 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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments