This short guide describes how to upgrade your VMWare ESXi 6.5 installation to version 6.5d dating 18 April 2017.
You need to enable SSH on the GUI if you want to do this remotely.
Before starting it`s recommended to put the system in maintenance mode.
esxcli network firewall ruleset set -e true -r httpClient
esxcli software profile update -p ESXi-6.5.0-20170404001-standard \
esxcli network firewall ruleset set -e false -r httpClient
Afterwards, you have to reboot.