This script help you to remove a ESXi Host from your environment and add It again after reinstall. Only run if your environment has NSX-V installed or change the script to your needs
julianoabr/remove_reconfigure_esxihost_vcsa67_or_above
This script helps you to remove a ESXi Host from your vCenter and add It again after reinstall with same configurations
PowerShellGPL-3.0