In this video, Joey Ware a Staff Technical Account Manager, goes over how to use PowerShell/PowerCLI to export the config of all the hosts within a vCenter infrastructure and then restore a single hosts config back after a fresh install. In this use case he is migrating from a USB drive to a USB-to-Sata drive due to vSphere's new recommendations for KB 85685.
You can find his scripts on Github at https://github.com/joeyvmware/automat... and follow up via Twitter (@joey_vm_ware).